From 3cc221d8c6018eab6e7a5ba14c38be2218dcee36 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 11:48:22 -0800 Subject: [PATCH] feat: add fast_tryout_enabled to FasterDeploymentConfig v1 proto (#5781) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add StopNotebookRuntime method PiperOrigin-RevId: 691931542 Source-Link: https://github.com/googleapis/googleapis/commit/c7ce97ebdeb85009fed49b1256586dbd3867adc6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f004bcc0ce148e70b8cbb7c033da9ffd79d95537 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImYwMDRiY2MwY2UxNDhlNzBiOGNiYjdjMDMzZGE5ZmZkNzlkOTU1MzcifQ== * feat: add system labels field to model garden deployments PiperOrigin-RevId: 692254608 Source-Link: https://github.com/googleapis/googleapis/commit/cac70e2890e210fc5f9b50d054983e802b0af611 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4e5dda3b7c635912221b204a08a261d744a582ee Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjRlNWRkYTNiN2M2MzU5MTIyMjFiMjA0YTA4YTI2MWQ3NDRhNTgyZWUifQ== * feat: added support for specifying function response type in `FunctionDeclaration` docs: updated the maximum number of function declarations from 64 to 128 PiperOrigin-RevId: 692287251 Source-Link: https://github.com/googleapis/googleapis/commit/d54f4e947e77b86ea2e0e243c92a174032098a54 Source-Link: https://github.com/googleapis/googleapis-gen/commit/14376d331369c5dd04e419421dbf3076f5d42fc4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjE0Mzc2ZDMzMTM2OWM1ZGQwNGU0MTk0MjFkYmYzMDc2ZjVkNDJmYzQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add Feature Monitoring API to Feature Store docs: update feature creation message commentary PiperOrigin-RevId: 692336095 Source-Link: https://github.com/googleapis/googleapis/commit/9b94dba2f7f4b601f8232bc3a3f6ef32665279b9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cd2ad6ccc7229bd93731f140acb1bed2a4c044dc Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImNkMmFkNmNjYzcyMjliZDkzNzMxZjE0MGFjYjFiZWQyYTRjMDQ0ZGMifQ== * chore: remove body selector from http rule PiperOrigin-RevId: 693215877 Source-Link: https://github.com/googleapis/googleapis/commit/bb6b53e326ce2db403d18be7158c265e07948920 Source-Link: https://github.com/googleapis/googleapis-gen/commit/db8b5a93484ad44055b2bacc4c7cf87e970fe0ed Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImRiOGI1YTkzNDg0YWQ0NDA1NWIyYmFjYzRjN2NmODdlOTcwZmUwZWQifQ== * feat: add BatchCreateFeatures rpc to feature_registry_service.proto feat: add OptimizedConfig for feature_view PiperOrigin-RevId: 694245585 Source-Link: https://github.com/googleapis/googleapis/commit/234f7157c6f5400cc283e7f4c5a6c8d24ec57984 Source-Link: https://github.com/googleapis/googleapis-gen/commit/47c0b04285586a77a39b2b06edac5dd6a5202720 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjQ3YzBiMDQyODU1ODZhNzdhMzliMmIwNmVkYWM1ZGQ2YTUyMDI3MjAifQ== * chore: run post processor * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add BYOSA field to tuning_job PiperOrigin-RevId: 695386844 Source-Link: https://github.com/googleapis/googleapis/commit/e5a3787ec95a2d3ccb1207a6470beb5ee0df3afc Source-Link: https://github.com/googleapis/googleapis-gen/commit/25a5672e5eb1dd46da8fb189a2e4483ab88d91bd Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjI1YTU2NzJlNWViMWRkNDZkYThmYjE4OWEyZTQ0ODNhYjg4ZDkxYmQifQ== * feat: add BYOSA field to tuning_job PiperOrigin-RevId: 695458857 Source-Link: https://github.com/googleapis/googleapis/commit/c809d353b727d5b6f83b061a7c93f90eafc7d2e3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b3fbafe1640459a537e26cd400a46207df55f5d0 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6ImIzZmJhZmUxNjQwNDU5YTUzN2UyNmNkNDAwYTQ2MjA3ZGY1NWY1ZDAifQ== * feat: metricX added to evaluation service proto docs: A comment for field `timeout` in message `.google.cloud.aiplatform.v1.Scheduling` is changed docs: A comment for field `restart_job_on_worker_restart` in message `.google.cloud.aiplatform.v1.Scheduling` is changed docs: A comment for method `ListAnnotations` in service `DatasetService` is changed docs: A comment for message `GetDatasetRequest` is changed docs: A comment for message `GetDatasetVersionRequest` is changed docs: A comment for field `update_mask` in message `.google.cloud.aiplatform.v1.UpdateFeatureViewRequest` is changed docs: A comment for method `RebaseTunedModel` in service `GenAiTuningService` is changed PiperOrigin-RevId: 695757711 Source-Link: https://github.com/googleapis/googleapis/commit/424d08509cb0a3b766f10dc1d5a77a8a62193f63 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7b8162969a95ed7098d5df2aaef01a58371cba26 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjdiODE2Mjk2OWE5NWVkNzA5OGQ1ZGYyYWFlZjAxYTU4MzcxY2JhMjYifQ== * run post processor locally * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: COMET added to evaluation service proto docs: A comment for field `saved_query_id` in message `.google.cloud.aiplatform.v1.ExportDataConfig` is changed docs: A comment for field `annotation_schema_uri` in message `.google.cloud.aiplatform.v1.ExportDataConfig` is changed docs: A comment for field `predictions` in message `.google.cloud.aiplatform.v1.EvaluatedAnnotation` is changed docs: A comment for field `attributions` in message `.google.cloud.aiplatform.v1.Explanation` is changed docs: A comment for message `DeleteFeatureViewRequest` is changed docs: A comment for field `page_token` in message `.google.cloud.aiplatform.v1.ListFeatureGroupsRequest` is changed docs: A comment for message `StreamingReadFeatureValuesRequest` is changed docs: A comment for message `DeleteEntityTypeRequest` is changed docs: A comment for field `page_token` in message `.google.cloud.aiplatform.v1.ListTuningJobsRequest` is changed docs: A comment for field `deployed_index` in message `.google.cloud.aiplatform.v1.MutateDeployedIndexRequest` is changed docs: A comment for field `request` in message `.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata` is changed docs: A comment for field `data_stats` in message `.google.cloud.aiplatform.v1.Model` is changed docs: A comment for field `enable_logging` in message `.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig` is changed docs: A comment for field `page_token` in message `.google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest` is changed docs: A comment for field `next_page_token` in message `.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse` is changed docs: A comment for message `ListPersistentResourcesRequest` is changed docs: A comment for field `page_token` in message `.google.cloud.aiplatform.v1.ListPersistentResourcesRequest` is changed docs: A comment for method `ResumeSchedule` in service `ScheduleService` is changed docs: A comment for field `bool_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `string_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `bytes_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `float_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `double_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `int_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `int64_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `uint_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed docs: A comment for field `uint64_val` in message `.google.cloud.aiplatform.v1.Tensor` is changed PiperOrigin-RevId: 695815755 Source-Link: https://github.com/googleapis/googleapis/commit/d8cfde0f4386c4901e5120643d9e91ce8f7919c8 Source-Link: https://github.com/googleapis/googleapis-gen/commit/243e9d27887bc101b681515afa90519825a8e6fc Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjI0M2U5ZDI3ODg3YmMxMDFiNjgxNTE1YWZhOTA1MTk4MjVhOGU2ZmMifQ== * feat: add fast_tryout_enabled to FasterDeploymentConfig v1 proto PiperOrigin-RevId: 695856863 Source-Link: https://github.com/googleapis/googleapis/commit/caa3e6d86e7315ee2753e14686319828f8d06d8a Source-Link: https://github.com/googleapis/googleapis-gen/commit/685fa1d711036e2203dfbbe0a89054e2872f3b8d Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjY4NWZhMWQ3MTEwMzZlMjIwM2RmYmJlMGE4OTA1NGUyODcyZjNiOGQifQ== * run post processor locally * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: Sofia Leon --- packages/google-cloud-aiplatform/README.md | 10 + .../cloud/aiplatform/v1/custom_job.proto | 4 +- .../google/cloud/aiplatform/v1/dataset.proto | 6 +- .../cloud/aiplatform/v1/dataset_service.proto | 4 + .../google/cloud/aiplatform/v1/endpoint.proto | 4 + .../google/cloud/aiplatform/v1/env_var.proto | 1 + .../aiplatform/v1/evaluated_annotation.proto | 2 +- .../aiplatform/v1/evaluation_service.proto | 126 +- .../cloud/aiplatform/v1/explanation.proto | 4 +- .../feature_online_store_admin_service.proto | 4 +- .../v1/feature_registry_service.proto | 24 +- .../v1/featurestore_online_service.proto | 2 +- .../aiplatform/v1/featurestore_service.proto | 20 +- .../aiplatform/v1/genai_tuning_service.proto | 7 +- .../v1/index_endpoint_service.proto | 6 +- .../aiplatform/v1/migration_service.proto | 2 +- .../google/cloud/aiplatform/v1/model.proto | 2 +- .../aiplatform/v1/model_monitoring.proto | 6 +- .../aiplatform/v1/notebook_service.proto | 8 +- .../google/cloud/aiplatform/v1/openapi.proto | 7 +- .../v1/persistent_resource_service.proto | 7 +- .../aiplatform/v1/schedule_service.proto | 5 +- .../google/cloud/aiplatform/v1/tool.proto | 16 +- .../cloud/aiplatform/v1/tuning_job.proto | 9 + .../google/cloud/aiplatform/v1/types.proto | 26 +- .../cloud/aiplatform/v1beta1/endpoint.proto | 4 + .../cloud/aiplatform/v1beta1/feature.proto | 6 + .../aiplatform/v1beta1/feature_monitor.proto | 164 + .../v1beta1/feature_monitor_job.proto | 113 + .../v1beta1/feature_registry_service.proto | 316 +- .../aiplatform/v1beta1/feature_view.proto | 17 + .../v1beta1/featurestore_service.proto | 24 +- .../aiplatform/v1beta1/notebook_service.proto | 40 + .../cloud/aiplatform/v1beta1/tuning_job.proto | 9 + .../protos/protos.d.ts | 3556 ++++++- .../google-cloud-aiplatform/protos/protos.js | 8630 ++++++++++++++++- .../protos/protos.json | 1067 +- .../google-cloud-aiplatform/samples/README.md | 180 + .../evaluation_service.evaluate_instances.js | 9 + ...store_admin_service.update_feature_view.js | 1 + ..._registry_service.batch_create_features.js | 74 + ...e_registry_service.create_feature_group.js | 2 +- ...re_registry_service.list_feature_groups.js | 8 +- ...turestore_service.batch_create_features.js | 13 +- .../gen_ai_tuning_service.list_tuning_jobs.js | 5 +- ..._endpoint_service.mutate_deployed_index.js | 6 +- ...ok_service.list_notebook_execution_jobs.js | 3 +- ...ource_service.list_persistent_resources.js | 4 +- ...t_metadata_google.cloud.aiplatform.v1.json | 70 +- ..._registry_service.batch_create_features.js | 74 + ...e_registry_service.create_feature_group.js | 2 +- ...registry_service.create_feature_monitor.js | 78 + ...stry_service.create_feature_monitor_job.js | 72 + ...registry_service.delete_feature_monitor.js | 64 + .../feature_registry_service.get_feature.js | 6 + ...re_registry_service.get_feature_monitor.js | 61 + ...egistry_service.get_feature_monitor_job.js | 63 + ...istry_service.list_feature_monitor_jobs.js | 97 + ..._registry_service.list_feature_monitors.js | 105 + ...turestore_service.batch_create_features.js | 13 +- .../featurestore_service.get_feature.js | 6 + .../notebook_service.stop_notebook_runtime.js | 65 + ...adata_google.cloud.aiplatform.v1beta1.json | 426 +- .../src/v1/dataset_service_client.ts | 2 + .../src/v1/evaluation_service_client.ts | 5 + ...ature_online_store_admin_service_client.ts | 1 + .../src/v1/feature_registry_service_client.ts | 183 +- ...eature_registry_service_client_config.json | 4 + .../src/v1/featurestore_service_client.ts | 13 +- .../src/v1/gapic_metadata.json | 10 + .../src/v1/gen_ai_tuning_service_client.ts | 17 +- .../src/v1/index_endpoint_service_client.ts | 6 +- .../src/v1/notebook_service_client.ts | 9 +- .../v1/persistent_resource_service_client.ts | 12 +- .../src/v1/schedule_service_client.ts | 5 +- .../src/v1beta1/dataset_service_client.ts | 174 + .../v1beta1/dataset_service_proto_list.json | 2 + ...deployment_resource_pool_service_client.ts | 174 + ...ment_resource_pool_service_proto_list.json | 2 + .../src/v1beta1/endpoint_service_client.ts | 174 + .../v1beta1/endpoint_service_proto_list.json | 2 + .../src/v1beta1/evaluation_service_client.ts | 174 + .../evaluation_service_proto_list.json | 2 + .../extension_execution_service_client.ts | 174 + ...xtension_execution_service_proto_list.json | 2 + .../extension_registry_service_client.ts | 174 + ...extension_registry_service_proto_list.json | 2 + ...ature_online_store_admin_service_client.ts | 174 + ...online_store_admin_service_proto_list.json | 2 + .../feature_online_store_service_client.ts | 174 + ...ature_online_store_service_proto_list.json | 2 + .../feature_registry_service_client.ts | 2108 +++- ...eature_registry_service_client_config.json | 32 + .../feature_registry_service_proto_list.json | 2 + ...turestore_online_serving_service_client.ts | 174 + ...ore_online_serving_service_proto_list.json | 2 + .../v1beta1/featurestore_service_client.ts | 191 +- .../featurestore_service_proto_list.json | 2 + .../src/v1beta1/gapic_metadata.json | 98 + .../v1beta1/gen_ai_cache_service_client.ts | 174 + .../gen_ai_cache_service_proto_list.json | 2 + .../v1beta1/gen_ai_tuning_service_client.ts | 174 + .../gen_ai_tuning_service_proto_list.json | 2 + .../v1beta1/index_endpoint_service_client.ts | 174 + .../index_endpoint_service_proto_list.json | 2 + .../src/v1beta1/index_service_client.ts | 174 + .../src/v1beta1/index_service_proto_list.json | 2 + .../src/v1beta1/job_service_client.ts | 174 + .../src/v1beta1/job_service_proto_list.json | 2 + .../src/v1beta1/llm_utility_service_client.ts | 174 + .../llm_utility_service_proto_list.json | 2 + .../src/v1beta1/match_service_client.ts | 174 + .../src/v1beta1/match_service_proto_list.json | 2 + .../src/v1beta1/metadata_service_client.ts | 174 + .../v1beta1/metadata_service_proto_list.json | 2 + .../src/v1beta1/migration_service_client.ts | 174 + .../v1beta1/migration_service_proto_list.json | 2 + .../v1beta1/model_garden_service_client.ts | 174 + .../model_garden_service_proto_list.json | 2 + .../model_monitoring_service_client.ts | 174 + .../model_monitoring_service_proto_list.json | 2 + .../src/v1beta1/model_service_client.ts | 174 + .../src/v1beta1/model_service_proto_list.json | 2 + .../src/v1beta1/notebook_service_client.ts | 325 + .../notebook_service_client_config.json | 4 + .../v1beta1/notebook_service_proto_list.json | 2 + .../persistent_resource_service_client.ts | 174 + ...ersistent_resource_service_proto_list.json | 2 + .../src/v1beta1/pipeline_service_client.ts | 174 + .../v1beta1/pipeline_service_proto_list.json | 2 + .../src/v1beta1/prediction_service_client.ts | 174 + .../prediction_service_proto_list.json | 2 + ...asoning_engine_execution_service_client.ts | 174 + ...g_engine_execution_service_proto_list.json | 2 + .../reasoning_engine_service_client.ts | 174 + .../reasoning_engine_service_proto_list.json | 2 + .../src/v1beta1/schedule_service_client.ts | 174 + .../v1beta1/schedule_service_proto_list.json | 2 + .../v1beta1/specialist_pool_service_client.ts | 174 + .../specialist_pool_service_proto_list.json | 2 + .../src/v1beta1/tensorboard_service_client.ts | 174 + .../tensorboard_service_proto_list.json | 2 + .../v1beta1/vertex_rag_data_service_client.ts | 174 + .../vertex_rag_data_service_proto_list.json | 2 + .../src/v1beta1/vertex_rag_service_client.ts | 174 + .../vertex_rag_service_proto_list.json | 2 + .../src/v1beta1/vizier_service_client.ts | 174 + .../v1beta1/vizier_service_proto_list.json | 2 + .../test/gapic_dataset_service_v1beta1.ts | 186 + ...eployment_resource_pool_service_v1beta1.ts | 192 + .../test/gapic_endpoint_service_v1beta1.ts | 186 + .../test/gapic_evaluation_service_v1beta1.ts | 188 + ...pic_extension_execution_service_v1beta1.ts | 192 + ...apic_extension_registry_service_v1beta1.ts | 192 + ...ture_online_store_admin_service_v1beta1.ts | 192 + ...ic_feature_online_store_service_v1beta1.ts | 192 + .../test/gapic_feature_registry_service_v1.ts | 200 + .../gapic_feature_registry_service_v1beta1.ts | 3083 ++++-- ...urestore_online_serving_service_v1beta1.ts | 192 + .../gapic_featurestore_service_v1beta1.ts | 188 + .../gapic_gen_ai_cache_service_v1beta1.ts | 188 + .../gapic_gen_ai_tuning_service_v1beta1.ts | 188 + .../gapic_index_endpoint_service_v1beta1.ts | 188 + .../test/gapic_index_service_v1beta1.ts | 186 + .../test/gapic_job_service_v1beta1.ts | 186 + .../test/gapic_llm_utility_service_v1beta1.ts | 188 + .../test/gapic_match_service_v1beta1.ts | 186 + .../test/gapic_metadata_service_v1beta1.ts | 186 + .../test/gapic_migration_service_v1beta1.ts | 186 + .../gapic_model_garden_service_v1beta1.ts | 188 + .../gapic_model_monitoring_service_v1beta1.ts | 188 + .../test/gapic_model_service_v1beta1.ts | 186 + .../test/gapic_notebook_service_v1beta1.ts | 380 + ...pic_persistent_resource_service_v1beta1.ts | 192 + .../test/gapic_pipeline_service_v1beta1.ts | 186 + .../test/gapic_prediction_service_v1beta1.ts | 188 + ...soning_engine_execution_service_v1beta1.ts | 192 + .../gapic_reasoning_engine_service_v1beta1.ts | 188 + .../test/gapic_schedule_service_v1beta1.ts | 186 + .../gapic_specialist_pool_service_v1beta1.ts | 188 + .../test/gapic_tensorboard_service_v1beta1.ts | 188 + .../gapic_vertex_rag_data_service_v1beta1.ts | 188 + .../test/gapic_vertex_rag_service_v1beta1.ts | 186 + .../test/gapic_vizier_service_v1beta1.ts | 186 + 184 files changed, 33255 insertions(+), 1048 deletions(-) create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto create mode 100644 packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.batch_create_features.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.batch_create_features.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor_job.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.delete_feature_monitor.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor_job.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitor_jobs.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitors.js create mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.stop_notebook_runtime.js diff --git a/packages/google-cloud-aiplatform/README.md b/packages/google-cloud-aiplatform/README.md index 2948a3d671a..4f2abe5e684 100644 --- a/packages/google-cloud-aiplatform/README.md +++ b/packages/google-cloud-aiplatform/README.md @@ -151,6 +151,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Feature_online_store_admin_service.update_feature_view | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.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/feature_online_store_admin_service.update_feature_view.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_online_store_service.fetch_feature_values | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_service.fetch_feature_values.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_service.fetch_feature_values.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_online_store_service.search_nearest_entities | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_service.search_nearest_entities.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/feature_online_store_service.search_nearest_entities.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_registry_service.batch_create_features | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.batch_create_features.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/feature_registry_service.batch_create_features.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.create_feature | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.create_feature_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature_group.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/feature_registry_service.create_feature_group.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.delete_feature | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.delete_feature.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.delete_feature.js,packages/google-cloud-aiplatform/samples/README.md) | @@ -459,13 +460,21 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Feature_online_store_service.fetch_feature_values | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_service.fetch_feature_values.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_service.fetch_feature_values.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_online_store_service.search_nearest_entities | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_service.search_nearest_entities.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/feature_online_store_service.search_nearest_entities.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_online_store_service.streaming_fetch_feature_values | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_service.streaming_fetch_feature_values.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_online_store_service.streaming_fetch_feature_values.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_registry_service.batch_create_features | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.batch_create_features.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/feature_registry_service.batch_create_features.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.create_feature | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.create_feature_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_group.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/feature_registry_service.create_feature_group.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_registry_service.create_feature_monitor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor.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/feature_registry_service.create_feature_monitor.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_registry_service.create_feature_monitor_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor_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/feature_registry_service.create_feature_monitor_job.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.delete_feature | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.delete_feature.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.delete_feature.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.delete_feature_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.delete_feature_group.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/feature_registry_service.delete_feature_group.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_registry_service.delete_feature_monitor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.delete_feature_monitor.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/feature_registry_service.delete_feature_monitor.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.get_feature | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.get_feature_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_group.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/feature_registry_service.get_feature_group.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_registry_service.get_feature_monitor | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor.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/feature_registry_service.get_feature_monitor.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_registry_service.get_feature_monitor_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor_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/feature_registry_service.get_feature_monitor_job.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.list_feature_groups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_groups.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/feature_registry_service.list_feature_groups.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_registry_service.list_feature_monitor_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitor_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/feature_registry_service.list_feature_monitor_jobs.js,packages/google-cloud-aiplatform/samples/README.md) | +| Feature_registry_service.list_feature_monitors | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitors.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/feature_registry_service.list_feature_monitors.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.list_features | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_features.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/feature_registry_service.list_features.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.update_feature | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.update_feature.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.update_feature.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_registry_service.update_feature_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.update_feature_group.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/feature_registry_service.update_feature_group.js,packages/google-cloud-aiplatform/samples/README.md) | @@ -635,6 +644,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Notebook_service.list_notebook_runtime_templates | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.list_notebook_runtime_templates.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/notebook_service.list_notebook_runtime_templates.js,packages/google-cloud-aiplatform/samples/README.md) | | Notebook_service.list_notebook_runtimes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.list_notebook_runtimes.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/notebook_service.list_notebook_runtimes.js,packages/google-cloud-aiplatform/samples/README.md) | | Notebook_service.start_notebook_runtime | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.start_notebook_runtime.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/notebook_service.start_notebook_runtime.js,packages/google-cloud-aiplatform/samples/README.md) | +| Notebook_service.stop_notebook_runtime | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.stop_notebook_runtime.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/notebook_service.stop_notebook_runtime.js,packages/google-cloud-aiplatform/samples/README.md) | | Notebook_service.update_notebook_runtime_template | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.update_notebook_runtime_template.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/notebook_service.update_notebook_runtime_template.js,packages/google-cloud-aiplatform/samples/README.md) | | Notebook_service.upgrade_notebook_runtime | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.upgrade_notebook_runtime.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/notebook_service.upgrade_notebook_runtime.js,packages/google-cloud-aiplatform/samples/README.md) | | Persistent_resource_service.create_persistent_resource | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/persistent_resource_service.create_persistent_resource.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/persistent_resource_service.create_persistent_resource.js,packages/google-cloud-aiplatform/samples/README.md) | diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto index 1175fa090e5..c053d7fbd82 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto @@ -382,10 +382,10 @@ message Scheduling { FLEX_START = 6; } - // The maximum job running time. The default is 7 days. + // Optional. The maximum job running time. The default is 7 days. google.protobuf.Duration timeout = 1; - // Restarts the entire CustomJob if a worker gets restarted. + // Optional. Restarts the entire CustomJob if a worker gets restarted. // This feature can be used by distributed training jobs that are not // resilient to workers leaving and joining a job. bool restart_job_on_worker_restart = 3; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto index 8aa4e9608fa..0e124ffb8ce 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto @@ -215,7 +215,8 @@ message ExportDataConfig { string annotations_filter = 2; // The ID of a SavedQuery (annotation set) under the Dataset specified by - // [dataset_id][] used for filtering Annotations for training. + // [ExportDataRequest.name][google.cloud.aiplatform.v1.ExportDataRequest.name] + // used for filtering Annotations for training. // // Only used for custom training data export use cases. // Only applicable to Datasets that have SavedQueries. @@ -242,7 +243,8 @@ message ExportDataConfig { // gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the // chosen schema must be consistent with // [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] of the - // Dataset specified by [dataset_id][]. + // Dataset specified by + // [ExportDataRequest.name][google.cloud.aiplatform.v1.ExportDataRequest.name]. // // Only used for custom training data export use cases. // Only applicable to Datasets that have DataItems and Annotations. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto index 72b247be7f1..59aac98313a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto @@ -260,6 +260,8 @@ service DatasetService { } // Lists Annotations belongs to a dataitem + // This RPC is only available in InternalDatasetService. It is only used for + // exporting conversation data to CCAI Insights. rpc ListAnnotations(ListAnnotationsRequest) returns (ListAnnotationsResponse) { option (google.api.http) = { @@ -294,6 +296,7 @@ message CreateDatasetOperationMetadata { // Request message for // [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset]. +// Next ID: 4 message GetDatasetRequest { // Required. The name of the Dataset resource. string name = 1 [ @@ -525,6 +528,7 @@ message DeleteDatasetVersionRequest { // Request message for // [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion]. +// Next ID: 4 message GetDatasetVersionRequest { // Required. The resource name of the Dataset version to delete. // Format: diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/endpoint.proto index 30c74dfb21e..96207a084be 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 @@ -293,6 +293,10 @@ message DeployedModel { // [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. PrivateEndpoints private_endpoints = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // System labels to apply to Model Garden deployments. + // System labels are managed by Google for internal use only. + map system_labels = 28; } // PrivateEndpoints proto is used to provide paths for users to send diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/env_var.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/env_var.proto index e7719a373fd..10f38b5c099 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/env_var.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/env_var.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluated_annotation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluated_annotation.proto index 853b24456b0..253420e89bd 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluated_annotation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluated_annotation.proto @@ -62,7 +62,7 @@ message EvaluatedAnnotation { // // For false positive, there is one and only one prediction, which doesn't // match any ground truth annotation of the corresponding - // [data_item_view_id][EvaluatedAnnotation.data_item_view_id]. + // [data_item_view_id][google.cloud.aiplatform.v1.EvaluatedAnnotation.evaluated_data_item_view_id]. // // For false negative, there are zero or more predictions which are similar to // the only ground truth annotation in diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluation_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluation_service.proto index b96317cb226..f0a6cfd96d4 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluation_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluation_service.proto @@ -139,6 +139,13 @@ message EvaluateInstancesRequest { // Input for tool parameter key value match metric. ToolParameterKVMatchInput tool_parameter_kv_match_input = 22; + + // Translation metrics. + // Input for Comet metric. + CometInput comet_input = 31; + + // Input for Metricx metric. + MetricxInput metricx_input = 32; } // Required. The resource name of the Location to evaluate the instances. @@ -235,6 +242,13 @@ message EvaluateInstancesResponse { // Results for tool parameter key value match metric. ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + + // Translation metrics. + // Result for Comet metric. + CometResult comet_result = 29; + + // Result for Metricx metric. + MetricxResult metricx_result = 30; } } @@ -1165,7 +1179,7 @@ message ToolParameterKVMatchInput { // Spec for tool parameter key value match metric. message ToolParameterKVMatchSpec { - // Optional. Whether to use STRCIT string match on parameter values. + // Optional. Whether to use STRICT string match on parameter values. bool use_strict_string_match = 1 [(google.api.field_behavior) = OPTIONAL]; } @@ -1191,3 +1205,113 @@ message ToolParameterKVMatchMetricValue { // Output only. Tool parameter key value match score. optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Input for Comet metric. +message CometInput { + // Required. Spec for comet metric. + CometSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Comet instance. + CometInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for Comet metric. +message CometSpec { + // Comet version options. + enum CometVersion { + // Comet version unspecified. + COMET_VERSION_UNSPECIFIED = 0; + + // Comet 22 for translation + source + reference + // (source-reference-combined). + COMET_22_SRC_REF = 2; + } + + // Required. Which version to use for evaluation. + optional CometVersion version = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Source language in BCP-47 format. + string source_language = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Target language in BCP-47 format. Covers both prediction and + // reference. + string target_language = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for Comet instance - The fields used for evaluation are dependent on the +// comet version. +message CometInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Source text in original language. + optional string source = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for Comet result - calculates the comet score for the given instance +// using the version specified in the spec. +message CometResult { + // Output only. Comet score. Range depends on version. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for MetricX metric. +message MetricxInput { + // Required. Spec for Metricx metric. + MetricxSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Metricx instance. + MetricxInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for MetricX metric. +message MetricxSpec { + // MetricX Version options. + enum MetricxVersion { + // MetricX version unspecified. + METRICX_VERSION_UNSPECIFIED = 0; + + // MetricX 2024 (2.6) for translation + reference (reference-based). + METRICX_24_REF = 1; + + // MetricX 2024 (2.6) for translation + source (QE). + METRICX_24_SRC = 2; + + // MetricX 2024 (2.6) for translation + source + reference + // (source-reference-combined). + METRICX_24_SRC_REF = 3; + } + + // Required. Which version to use for evaluation. + optional MetricxVersion version = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Source language in BCP-47 format. + string source_language = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Target language in BCP-47 format. Covers both prediction and + // reference. + string target_language = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for MetricX instance - The fields used for evaluation are dependent on +// the MetricX version. +message MetricxInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Source text in original language. + optional string source = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for MetricX result - calculates the MetricX score for the given instance +// using the version specified in the spec. +message MetricxResult { + // Output only. MetricX score. Range depends on version. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto index b311c608ed4..905bd00ad7d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/explanation.proto @@ -55,8 +55,8 @@ message Explanation { // If users set // [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], // the attributions are sorted by - // [instance_output_value][Attributions.instance_output_value] in descending - // order. If + // [instance_output_value][google.cloud.aiplatform.v1.Attribution.instance_output_value] + // in descending order. If // [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices] // is specified, the attributions are stored by // [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto index bda6943518c..0d71cfcf334 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto @@ -490,10 +490,12 @@ message UpdateFeatureViewRequest { // * `feature_registry_source.feature_groups` // * `sync_config` // * `sync_config.cron` + // * `optimized_config.automatic_resources` google.protobuf.FieldMask update_mask = 2; } -// Request message for [FeatureOnlineStoreAdminService.DeleteFeatureViews][]. +// Request message for +// [FeatureOnlineStoreAdminService.DeleteFeatureView][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureView]. message DeleteFeatureViewRequest { // Required. The name of the FeatureView to be deleted. // Format: diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_registry_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_registry_service.proto index a113cac5b55..6d07fcd221e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_registry_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_registry_service.proto @@ -116,6 +116,20 @@ service FeatureRegistryService { }; } + // Creates a batch of Features in a given FeatureGroup. + rpc BatchCreateFeatures(BatchCreateFeaturesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/featureGroups/*}/features:batchCreate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + option (google.longrunning.operation_info) = { + response_type: "BatchCreateFeaturesResponse" + metadata_type: "BatchCreateFeaturesOperationMetadata" + }; + } + // Gets details of a single Feature. rpc GetFeature(GetFeatureRequest) returns (Feature) { option (google.api.http) = { @@ -179,7 +193,7 @@ message CreateFeatureGroupRequest { // Required. The ID to use for this FeatureGroup, which will become the final // component of the FeatureGroup's resource name. // - // This value may be up to 60 characters, and valid characters are + // This value may be up to 128 characters, and valid characters are // `[a-z0-9_]`. The first character cannot be a number. // // The value must be unique within the project and location. @@ -237,12 +251,12 @@ message ListFeatureGroupsRequest { int32 page_size = 3; // A page token, received from a previous - // [FeatureGroupAdminService.ListFeatureGroups][] call. - // Provide this to retrieve the subsequent page. + // [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [FeatureGroupAdminService.ListFeatureGroups][] must - // match the call that provided the page token. + // [FeatureRegistryService.ListFeatureGroups][google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups] + // must match the call that provided the page token. string page_token = 4; // A comma-separated list of fields to order by, sorted in ascending order. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto index 9f973bdad19..b7a2db1ed1d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto @@ -206,7 +206,7 @@ message ReadFeatureValuesResponse { } // Request message for -// [FeaturestoreOnlineServingService.StreamingFeatureValuesRead][]. +// [FeaturestoreOnlineServingService.StreamingReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.StreamingReadFeatureValues]. message StreamingReadFeatureValuesRequest { // Required. The resource name of the entities' type. // Value format: diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto index ac8be931c51..a3e5a70a26e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore_service.proto @@ -931,7 +931,8 @@ message UpdateEntityTypeRequest { google.protobuf.FieldMask update_mask = 2; } -// Request message for [FeaturestoreService.DeleteEntityTypes][]. +// Request message for +// [FeaturestoreService.DeleteEntityType][google.cloud.aiplatform.v1.FeaturestoreService.DeleteEntityType]. message DeleteEntityTypeRequest { // Required. The name of the EntityType to be deleted. // Format: @@ -980,22 +981,25 @@ message CreateFeatureRequest { // Request message for // [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeatures]. +// Request message for +// [FeatureRegistryService.BatchCreateFeatures][google.cloud.aiplatform.v1.FeatureRegistryService.BatchCreateFeatures]. message BatchCreateFeaturesRequest { - // Required. The resource name of the EntityType to create the batch of - // Features under. Format: + // Required. The resource name of the EntityType/FeatureGroup to create the + // batch of Features under. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + // `projects/{project}/locations/{location}/featureGroups/{feature_group}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "aiplatform.googleapis.com/EntityType" + child_type: "aiplatform.googleapis.com/Feature" } ]; // Required. The request message specifying the Features to create. All - // Features must be created under the same parent EntityType. The `parent` - // field in each child request message can be omitted. If `parent` is set in a - // child request, then the value must match the `parent` value in this request - // message. + // Features must be created under the same parent EntityType / FeatureGroup. + // The `parent` field in each child request message can be omitted. If + // `parent` is set in a child request, then the value must match the `parent` + // value in this request message. repeated CreateFeatureRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/genai_tuning_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/genai_tuning_service.proto index d5202362163..c7520122d98 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/genai_tuning_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/genai_tuning_service.proto @@ -87,8 +87,6 @@ service GenAiTuningService { } // Rebase a TunedModel. - // Creates a LongRunningOperation that takes a legacy Tuned GenAI model - // Reference and creates a TuningJob based on newly available model. rpc RebaseTunedModel(RebaseTunedModelRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -151,8 +149,9 @@ message ListTuningJobsRequest { int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The standard list page token. - // Typically obtained via [ListTuningJob.next_page_token][] of the - // previous GenAiTuningService.ListTuningJob][] call. + // Typically obtained via + // [ListTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListTuningJobsResponse.next_page_token] + // of the previous GenAiTuningService.ListTuningJob][] call. string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto index 037154084f5..25ed9dafef8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint_service.proto @@ -339,8 +339,10 @@ message MutateDeployedIndexRequest { ]; // Required. The DeployedIndex to be updated within the IndexEndpoint. - // Currently, the updatable fields are [DeployedIndex][automatic_resources] - // and [DeployedIndex][dedicated_resources] + // Currently, the updatable fields are + // [DeployedIndex.automatic_resources][google.cloud.aiplatform.v1.DeployedIndex.automatic_resources] + // and + // [DeployedIndex.dedicated_resources][google.cloud.aiplatform.v1.DeployedIndex.dedicated_resources] DeployedIndex deployed_index = 2 [(google.api.field_behavior) = REQUIRED]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migration_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migration_service.proto index 39c101b1f41..7ba461ab082 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migration_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/migration_service.proto @@ -308,7 +308,7 @@ message BatchMigrateResourcesOperationMetadata { } // It's the same as the value in - // [MigrateResourceRequest.migrate_resource_requests][]. + // [BatchMigrateResourcesRequest.migrate_resource_requests][google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrate_resource_requests]. MigrateResourceRequest request = 1; } 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 ad721bc7c2e..88d19db22ea 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 @@ -441,7 +441,7 @@ message Model { // Stats of data used for training or evaluating the Model. // // Only populated when the Model is trained by a TrainingPipeline with - // [data_input_config][TrainingPipeline.data_input_config]. + // [data_input_config][google.cloud.aiplatform.v1.TrainingPipeline.input_data_config]. DataStats data_stats = 21; // Customer-managed encryption key spec for a Model. If set, this diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto index b3d43b7d225..e4a250c0577 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_monitoring.proto @@ -185,9 +185,9 @@ message ModelMonitoringAlertConfig { // Dump the anomalies to Cloud Logging. The anomalies will be put to json // payload encoded from proto - // [google.cloud.aiplatform.logging.ModelMonitoringAnomaliesLogEntry][]. - // This can be further sinked to Pub/Sub or any other services supported - // by Cloud Logging. + // [ModelMonitoringStatsAnomalies][google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies]. + // This can be further synced to Pub/Sub or any other services supported by + // Cloud Logging. bool enable_logging = 2; // Resource names of the NotificationChannels to send alert. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/notebook_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/notebook_service.proto index f7df0160f4b..2685675a443 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/notebook_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/notebook_service.proto @@ -713,7 +713,8 @@ message ListNotebookExecutionJobsRequest { // Optional. The standard list page token. // Typically obtained via - // [ListNotebookExecutionJobs.next_page_token][] of the previous + // [ListNotebookExecutionJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.next_page_token] + // of the previous // [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs] // call. string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -738,8 +739,9 @@ message ListNotebookExecutionJobsResponse { repeated NotebookExecutionJob notebook_execution_jobs = 1; // A token to retrieve next page of results. - // Pass to [ListNotebookExecutionJobs.page_token][] to obtain that - // page. + // Pass to + // [ListNotebookExecutionJobsRequest.page_token][google.cloud.aiplatform.v1.ListNotebookExecutionJobsRequest.page_token] + // to obtain that page. string next_page_token = 2; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/openapi.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/openapi.proto index 216f76aa7fa..ebe755d2264 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/openapi.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/openapi.proto @@ -89,9 +89,12 @@ message Schema { // Optional. Maximum number of the elements for Type.ARRAY. int64 max_items = 22 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Possible values of the element of Type.STRING with enum format. - // For example we can define an Enum Direction as : + // Optional. Possible values of the element of primitive type with enum + // format. Examples: + // 1. We can define direction as : // {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} + // 2. We can define apartment number as : + // {type:INTEGER, format:enum, enum:["101", "201", "301"]} repeated string enum = 9 [(google.api.field_behavior) = OPTIONAL]; // Optional. SCHEMA FIELDS FOR TYPE OBJECT diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/persistent_resource_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/persistent_resource_service.proto index fc958657537..0881b8d5082 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/persistent_resource_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/persistent_resource_service.proto @@ -180,7 +180,8 @@ message GetPersistentResourceRequest { ]; } -// Request message for [PersistentResourceService.ListPersistentResource][]. +// Request message for +// [PersistentResourceService.ListPersistentResources][google.cloud.aiplatform.v1.PersistentResourceService.ListPersistentResources]. message ListPersistentResourcesRequest { // Required. The resource name of the Location to list the PersistentResources // from. Format: `projects/{project}/locations/{location}` @@ -196,8 +197,8 @@ message ListPersistentResourcesRequest { // Optional. The standard list page token. // Typically obtained via - // [ListPersistentResourceResponse.next_page_token][] of the previous - // [PersistentResourceService.ListPersistentResource][] call. + // [ListPersistentResourcesResponse.next_page_token][google.cloud.aiplatform.v1.ListPersistentResourcesResponse.next_page_token] + // of the previous [PersistentResourceService.ListPersistentResource][] call. string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schedule_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schedule_service.proto index 6af25b476d9..0a2b62e2615 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schedule_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/schedule_service.proto @@ -97,8 +97,9 @@ service ScheduleService { // // When the Schedule is resumed, new runs will be scheduled starting from the // next execution time after the current time based on the time_specification - // in the Schedule. If [Schedule.catchUp][] is set up true, all - // missed runs will be scheduled for backfill first. + // in the Schedule. If + // [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up + // true, all missed runs will be scheduled for backfill first. rpc ResumeSchedule(ResumeScheduleRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/schedules/*}:resume" diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tool.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tool.proto index 3f25c21a804..885d0a50798 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tool.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tool.proto @@ -44,7 +44,7 @@ message Tool { // User should provide a [FunctionResponse][content.part.function_response] // for each function call in the next turn. Based on the function responses, // Model will generate the final response back to the user. - // Maximum 64 function declarations can be provided. + // Maximum 128 function declarations can be provided. repeated FunctionDeclaration function_declarations = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -62,9 +62,9 @@ message Tool { // Structured representation of a function declaration as defined by the // [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included -// in this declaration are the function name and parameters. This -// FunctionDeclaration is a representation of a block of code that can be used -// as a `Tool` by the model and executed by the client. +// in this declaration are the function name, description, parameters and +// response type. This FunctionDeclaration is a representation of a block of +// code that can be used as a `Tool` by the model and executed by the client. message FunctionDeclaration { // Required. The name of the function to call. // Must start with a letter or an underscore. @@ -91,6 +91,11 @@ message FunctionDeclaration { // required: // - param1 Schema parameters = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Describes the output from this function in JSON Schema format. + // Reflects the Open API 3.03 Response Object. The Schema defines the type + // used for the response value of the function. + Schema response = 4 [(google.api.field_behavior) = OPTIONAL]; } // A predicted [FunctionCall] returned from the model that contains a string @@ -116,6 +121,9 @@ message FunctionResponse { string name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The function response in JSON object format. + // Use "output" key to specify function output and "error" key to specify + // error details (if any). If "output" and "error" keys are not specified, + // then whole "response" is treated as function output. google.protobuf.Struct response = 2 [(google.api.field_behavior) = REQUIRED]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto index db18992327a..c19d8167216 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto @@ -131,6 +131,15 @@ message TuningJob { // then all resources created by the TuningJob will be encrypted with the // provided encryption key. EncryptionSpec encryption_spec = 16; + + // The service account that the tuningJob workload runs as. + // If not specified, the Vertex AI Secure Fine-Tuned Service Agent in the + // project will be used. See + // https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent + // + // Users starting the pipeline must have the `iam.serviceAccounts.actAs` + // permission on this service account. + string service_account = 22; } // The Model Registry Model and Online Prediction Endpoint assiociated with diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/types.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/types.proto index 9bacf67f16e..26d79be6a28 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/types.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/types.proto @@ -94,35 +94,35 @@ message Tensor { // be set. The values hold the flattened representation of the tensor in // row major order. // - // [BOOL][google.aiplatform.master.Tensor.DataType.BOOL] + // [BOOL][google.cloud.aiplatform.v1.Tensor.DataType.BOOL] repeated bool bool_val = 3; - // [STRING][google.aiplatform.master.Tensor.DataType.STRING] + // [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING] repeated string string_val = 14; - // [STRING][google.aiplatform.master.Tensor.DataType.STRING] + // [STRING][google.cloud.aiplatform.v1.Tensor.DataType.STRING] repeated bytes bytes_val = 15; - // [FLOAT][google.aiplatform.master.Tensor.DataType.FLOAT] + // [FLOAT][google.cloud.aiplatform.v1.Tensor.DataType.FLOAT] repeated float float_val = 5; - // [DOUBLE][google.aiplatform.master.Tensor.DataType.DOUBLE] + // [DOUBLE][google.cloud.aiplatform.v1.Tensor.DataType.DOUBLE] repeated double double_val = 6; - // [INT_8][google.aiplatform.master.Tensor.DataType.INT8] - // [INT_16][google.aiplatform.master.Tensor.DataType.INT16] - // [INT_32][google.aiplatform.master.Tensor.DataType.INT32] + // [INT_8][google.cloud.aiplatform.v1.Tensor.DataType.INT8] + // [INT_16][google.cloud.aiplatform.v1.Tensor.DataType.INT16] + // [INT_32][google.cloud.aiplatform.v1.Tensor.DataType.INT32] repeated int32 int_val = 7; - // [INT64][google.aiplatform.master.Tensor.DataType.INT64] + // [INT64][google.cloud.aiplatform.v1.Tensor.DataType.INT64] repeated int64 int64_val = 8; - // [UINT8][google.aiplatform.master.Tensor.DataType.UINT8] - // [UINT16][google.aiplatform.master.Tensor.DataType.UINT16] - // [UINT32][google.aiplatform.master.Tensor.DataType.UINT32] + // [UINT8][google.cloud.aiplatform.v1.Tensor.DataType.UINT8] + // [UINT16][google.cloud.aiplatform.v1.Tensor.DataType.UINT16] + // [UINT32][google.cloud.aiplatform.v1.Tensor.DataType.UINT32] repeated uint32 uint_val = 9; - // [UINT64][google.aiplatform.master.Tensor.DataType.UINT64] + // [UINT64][google.cloud.aiplatform.v1.Tensor.DataType.UINT64] repeated uint64 uint64_val = 10; // A list of tensor values. 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 930b1defe93..c78facdb706 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 @@ -297,6 +297,10 @@ message DeployedModel { // Configuration for faster model deployment. FasterDeploymentConfig faster_deployment_config = 23; + + // System labels to apply to Model Garden deployments. + // System labels are managed by Google for internal use only. + map system_labels = 28; } // PrivateEndpoints proto is used to provide paths for users to send diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto index e253f1a7cfd..9adb5661f34 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature.proto @@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/feature_monitor.proto"; import "google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto"; import "google/cloud/aiplatform/v1beta1/featurestore_monitoring.proto"; import "google/protobuf/timestamp.proto"; @@ -196,6 +197,11 @@ message Feature { repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Only applicable for Vertex AI Feature Store. + // The list of historical stats and anomalies. + repeated FeatureStatsAndAnomaly feature_stats_and_anomaly = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Only applicable for Vertex AI Feature Store. // The name of the BigQuery Table/View column hosting data for this version. // If no value is provided, will use feature_id. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto new file mode 100644 index 00000000000..b283cb6e8fb --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto @@ -0,0 +1,164 @@ +// Copyright 2024 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/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/interval.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 = "FeatureMonitorProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Vertex AI Feature Monitor. +message FeatureMonitor { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/FeatureMonitor" + pattern: "projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}" + plural: "featureMonitors" + singular: "featureMonitor" + }; + + // Identifier. Name of the FeatureMonitor. Format: + // `projects/{project}/locations/{location}/featureGroups/{featureGroup}/featureMonitors/{featureMonitor}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Timestamp when this FeatureMonitor was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this FeatureMonitor was last updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Used to perform consistent read-modify-write updates. If not set, + // a blind "overwrite" update happens. + string etag = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The labels with user-defined metadata to organize your + // FeatureMonitor. + // + // 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 on and examples of labels. + // No more than 64 user labels can be associated with one + // FeatureMonitor(System labels are excluded)." System reserved label keys + // are prefixed with "aiplatform.googleapis.com/" and are immutable. + map labels = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the FeatureMonitor. + string description = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Schedule config for the FeatureMonitor. + ScheduleConfig schedule_config = 7 [(google.api.field_behavior) = REQUIRED]; + + // Required. Feature selection config for the FeatureMonitor. + FeatureSelectionConfig feature_selection_config = 8 + [(google.api.field_behavior) = REQUIRED]; +} + +// Schedule configuration for the FeatureMonitor. +message ScheduleConfig { + // Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled + // runs. To explicitly set a timezone to the cron tab, apply a prefix in + // the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". + // The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + // database. For example, "CRON_TZ=America/New_York 1 * * * *", or + // "TZ=America/New_York 1 * * * *". + string cron = 1; +} + +// Feature selection configuration for the FeatureMonitor. +message FeatureSelectionConfig { + // Feature configuration. + message FeatureConfig { + // Required. The ID of the feature resource. Final component of the + // Feature's resource name. + string feature_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Drift threshold. If calculated difference with baseline data + // larger than threshold, it will be considered as the feature has drift. If + // not present, the threshold will be default to 0.3. + double drift_threshold = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. A list of features to be monitored and each feature's drift + // threshold. + repeated FeatureConfig feature_configs = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Stats and Anomaly generated by FeatureMonitorJobs. Anomaly only includes +// Drift. +message FeatureStatsAndAnomaly { + // Feature Id. + string feature_id = 1; + + // Feature stats. e.g. histogram buckets. + // In the format of tensorflow.metadata.v0.DatasetFeatureStatistics. + google.protobuf.Value feature_stats = 2; + + // Deviation from the current stats to baseline stats. + // 1. For categorical feature, the distribution distance is calculated by + // L-inifinity norm. + // 2. For numerical feature, the distribution distance is calculated by + // Jensen–Shannon divergence. + double distribution_deviation = 3; + + // This is the threshold used when detecting drifts, which is set in + // FeatureMonitor.FeatureSelectionConfig.FeatureConfig.drift_threshold + double drift_detection_threshold = 4; + + // If set to true, indicates current stats is detected as and comparing + // with baseline stats. + bool drift_detected = 5; + + // The timestamp we take snapshot for feature values to generate stats. + google.protobuf.Timestamp stats_time = 6; + + // The ID of the FeatureMonitorJob that generated this FeatureStatsAndAnomaly. + int64 feature_monitor_job_id = 7; + + // The ID of the FeatureMonitor that this FeatureStatsAndAnomaly generated + // according to. + string feature_monitor_id = 8; +} + +// Defines how to select FeatureStatsAndAnomaly to be populated in response. +// If set, retrieves FeatureStatsAndAnomaly generated by FeatureMonitors based +// on this spec. +message FeatureStatsAndAnomalySpec { + // Optional. If set, returns the most recent count of stats. Valid value is + // [0, 100]. If stats_time_range is set, return most recent count of stats + // within the stats_time_range. + optional int32 latest_stats_count = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, return all stats generated between [start_time, + // end_time). If latest_stats_count is set, return the most recent count of + // stats within the stats_time_range. + google.type.Interval stats_time_range = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto new file mode 100644 index 00000000000..960b4659781 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto @@ -0,0 +1,113 @@ +// Copyright 2024 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/feature_monitor.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 = "FeatureMonitorJobProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Vertex AI Feature Monitor Job. +message FeatureMonitorJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/FeatureMonitorJob" + pattern: "projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}" + plural: "featureMonitorJobs" + singular: "featureMonitorJob" + }; + + // Summary from the FeatureMonitorJob. + message JobSummary { + // Output only. BigQuery slot milliseconds consumed. + int64 total_slot_ms = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Features and their stats and anomalies + repeated FeatureStatsAndAnomaly feature_stats_and_anomalies = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Choices of the trigger type. + enum FeatureMonitorJobTrigger { + // Trigger type unspecified. + FEATURE_MONITOR_JOB_TRIGGER_UNSPECIFIED = 0; + + // Triggered by periodic schedule. + FEATURE_MONITOR_JOB_TRIGGER_PERIODIC = 1; + + // Triggered on demand by CreateFeatureMonitorJob request. + FEATURE_MONITOR_JOB_TRIGGER_ON_DEMAND = 2; + } + + // Identifier. Name of the FeatureMonitorJob. Format: + // `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Timestamp when this FeatureMonitorJob was created. Creation of + // a FeatureMonitorJob means that the job is pending / waiting for sufficient + // resources but may not have started running yet. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Final status of the FeatureMonitorJob. + google.rpc.Status final_status = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summary from the FeatureMonitorJob. + JobSummary job_summary = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The labels with user-defined metadata to organize your + // FeatureMonitorJob. + // + // 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 on and examples of labels. + // No more than 64 user labels can be associated with one + // FeatureMonitor(System labels are excluded)." System reserved label keys + // are prefixed with "aiplatform.googleapis.com/" and are immutable. + map labels = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the FeatureMonitor. + string description = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. FeatureMonitorJob ID comparing to which the drift is + // calculated. + int64 drift_base_feature_monitor_job_id = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Data snapshot time comparing to which the drift is calculated. + google.protobuf.Timestamp drift_base_snapshot_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Feature selection config used when creating FeatureMonitorJob. + FeatureSelectionConfig feature_selection_config = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Trigger type of the Feature Monitor Job. + FeatureMonitorJobTrigger trigger_type = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_registry_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_registry_service.proto index 72e42350347..15038b1b714 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_registry_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_registry_service.proto @@ -22,6 +22,8 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/feature.proto"; import "google/cloud/aiplatform/v1beta1/feature_group.proto"; +import "google/cloud/aiplatform/v1beta1/feature_monitor.proto"; +import "google/cloud/aiplatform/v1beta1/feature_monitor_job.proto"; import "google/cloud/aiplatform/v1beta1/featurestore_service.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; @@ -116,6 +118,20 @@ service FeatureRegistryService { }; } + // Creates a batch of Features in a given FeatureGroup. + rpc BatchCreateFeatures(BatchCreateFeaturesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/featureGroups/*}/features:batchCreate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + option (google.longrunning.operation_info) = { + response_type: "BatchCreateFeaturesResponse" + metadata_type: "BatchCreateFeaturesOperationMetadata" + }; + } + // Gets details of a single Feature. rpc GetFeature(GetFeatureRequest) returns (Feature) { option (google.api.http) = { @@ -158,6 +174,80 @@ service FeatureRegistryService { metadata_type: "DeleteOperationMetadata" }; } + + // Creates a new FeatureMonitor in a given project, location and FeatureGroup. + rpc CreateFeatureMonitor(CreateFeatureMonitorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/featureGroups/*}/featureMonitors" + body: "feature_monitor" + }; + option (google.api.method_signature) = + "parent,feature_monitor,feature_monitor_id"; + option (google.longrunning.operation_info) = { + response_type: "FeatureMonitor" + metadata_type: "CreateFeatureMonitorOperationMetadata" + }; + } + + // Gets details of a single FeatureMonitor. + rpc GetFeatureMonitor(GetFeatureMonitorRequest) returns (FeatureMonitor) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/featureGroups/*/featureMonitors/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists FeatureGroups in a given project and location. + rpc ListFeatureMonitors(ListFeatureMonitorsRequest) + returns (ListFeatureMonitorsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/featureGroups/*}/featureMonitors" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a single FeatureMonitor. + rpc DeleteFeatureMonitor(DeleteFeatureMonitorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/featureGroups/*/featureMonitors/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Creates a new feature monitor job. + rpc CreateFeatureMonitorJob(CreateFeatureMonitorJobRequest) + returns (FeatureMonitorJob) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/featureGroups/*/featureMonitors/*}/featureMonitorJobs" + body: "feature_monitor_job" + }; + option (google.api.method_signature) = + "parent,feature_monitor_job,feature_monitor_job_id"; + } + + // Get a feature monitor job. + rpc GetFeatureMonitorJob(GetFeatureMonitorJobRequest) + returns (FeatureMonitorJob) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/featureGroups/*/featureMonitors/*/featureMonitorJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List feature monitor jobs. + rpc ListFeatureMonitorJobs(ListFeatureMonitorJobsRequest) + returns (ListFeatureMonitorJobsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/featureGroups/*/featureMonitors/*}/featureMonitorJobs" + }; + option (google.api.method_signature) = "parent"; + } } // Request message for @@ -179,7 +269,7 @@ message CreateFeatureGroupRequest { // Required. The ID to use for this FeatureGroup, which will become the final // component of the FeatureGroup's resource name. // - // This value may be up to 60 characters, and valid characters are + // This value may be up to 128 characters, and valid characters are // `[a-z0-9_]`. The first character cannot be a number. // // The value must be unique within the project and location. @@ -311,6 +401,126 @@ message DeleteFeatureGroupRequest { bool force = 2; } +// Request message for +// [FeatureRegistryService.CreateFeatureMonitorRequest][]. +message CreateFeatureMonitorRequest { + // Required. The resource name of FeatureGroup to create FeatureMonitor. + // Format: + // `projects/{project}/locations/{location}/featureGroups/{featuregroup}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/FeatureMonitor" + } + ]; + + // Required. The Monitor to create. + FeatureMonitor feature_monitor = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for this FeatureMonitor, which will become the + // final component of the FeatureGroup's resource name. + // + // This value may be up to 60 characters, and valid characters are + // `[a-z0-9_]`. The first character cannot be a number. + // + // The value must be unique within the FeatureGroup. + string feature_monitor_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [FeatureRegistryService.GetFeatureMonitor][google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitor]. +message GetFeatureMonitorRequest { + // Required. The name of the FeatureMonitor resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureMonitor" + } + ]; +} + +// Request message for +// [FeatureRegistryService.ListFeatureMonitors][google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors]. +message ListFeatureMonitorsRequest { + // Required. The resource name of the FeatureGroup to list FeatureMonitors. + // Format: + // `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/FeatureMonitor" + } + ]; + + // Optional. Lists the FeatureMonitors that match the filter expression. The + // following fields are supported: + // + // * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be + // in RFC 3339 format. + // * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be + // in RFC 3339 format. + // * `labels`: Supports key-value equality and key presence. + // + // Examples: + // + // * `create_time > "2020-01-01" OR update_time > "2020-01-01"` + // FeatureMonitors created or updated after 2020-01-01. + // * `labels.env = "prod"` + // FeatureGroups with label "env" set to "prod". + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of FeatureGroups to return. The service may + // return fewer than this value. If unspecified, at most 100 FeatureMonitors + // will be returned. The maximum value is 100; any value greater than 100 will + // be coerced to 100. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // [FeatureRegistryService.ListFeatureMonitors][google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [FeatureRegistryService.ListFeatureMonitors][google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors] + // must match the call that provided the page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. Supported Fields: + // + // * `create_time` + // * `update_time` + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [FeatureRegistryService.DeleteFeatureMonitor][google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeatureMonitor]. +message DeleteFeatureMonitorRequest { + // Required. The name of the FeatureMonitor to be deleted. + // Format: + // `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureMonitor" + } + ]; +} + +// Response message for +// [FeatureRegistryService.ListFeatureMonitors][google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors]. +message ListFeatureMonitorsResponse { + // The FeatureMonitors matching the request. + repeated FeatureMonitor feature_monitors = 1; + + // A token, which can be sent as + // [ListFeatureMonitorsRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + // Details of operations that perform create FeatureGroup. message CreateFeatureGroupOperationMetadata { // Operation metadata for FeatureGroup. @@ -334,3 +544,107 @@ message UpdateFeatureOperationMetadata { // Operation metadata for Feature Update. GenericOperationMetadata generic_metadata = 1; } + +// Details of operations that perform create FeatureMonitor. +message CreateFeatureMonitorOperationMetadata { + // Operation metadata for Feature. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for +// [FeatureRegistryService.CreateFeatureMonitorJobRequest][]. +message CreateFeatureMonitorJobRequest { + // Required. The resource name of FeatureMonitor to create FeatureMonitorJob. + // Format: + // `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/FeatureMonitorJob" + } + ]; + + // Required. The Monitor to create. + FeatureMonitorJob feature_monitor_job = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Output only. System-generated ID for feature monitor job. + int64 feature_monitor_job_id = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + +// Request message for +// [FeatureRegistryService.GetFeatureMonitorJob][google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitorJob]. +message GetFeatureMonitorJobRequest { + // Required. The name of the FeatureMonitorJob resource. + // Format: + // `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/FeatureMonitorJob" + } + ]; +} + +// Request message for +// [FeatureRegistryService.ListFeatureMonitorJobs][google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs]. +message ListFeatureMonitorJobsRequest { + // Required. The resource name of the FeatureMonitor to list + // FeatureMonitorJobs. Format: + // `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/FeatureMonitorJob" + } + ]; + + // Optional. Lists the FeatureMonitorJobs that match the filter expression. + // The following fields are supported: + // + // * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + // Values must be + // + // Examples: + // + // * `create_time > "2020-01-01"` + // FeatureMonitorJobs created after 2020-01-01. + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of FeatureMonitorJobs to return. The service + // may return fewer than this value. If unspecified, at most 100 + // FeatureMonitorJobs will be returned. The maximum value is 100; any value + // greater than 100 will be coerced to 100. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // [FeatureRegistryService.ListFeatureMonitorJobs][google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [FeatureRegistryService.ListFeatureMonitorJobs][google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs] + // must match the call that provided the page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. Supported Fields: + // + // * `create_time` + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [FeatureRegistryService.ListFeatureMonitorJobs][google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs]. +message ListFeatureMonitorJobsResponse { + // The FeatureMonitorJobs matching the request. + repeated FeatureMonitorJob feature_monitor_jobs = 1; + + // A token, which can be sent as + // [ListFeatureMonitorJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view.proto index bb1e974f56f..e0c7baae363 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view.proto @@ -18,6 +18,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/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -256,6 +257,17 @@ message FeatureView { int64 rag_corpus_id = 2 [(google.api.field_behavior) = OPTIONAL]; } + // Configuration for FeatureViews created in Optimized FeatureOnlineStore. + message OptimizedConfig { + // Optional. A description of resources that the FeatureView uses, which to + // large degree are decided by Vertex AI, and optionally allows only a + // modest additional configuration. If min_replica_count is not set, the + // default value is 2. If max_replica_count is not set, the default value + // is 6. The max allowed replica count is 1000. + AutomaticResources automatic_resources = 7 + [(google.api.field_behavior) = OPTIONAL]; + } + // Service agent type used during data sync. enum ServiceAgentType { // By default, the project-level Vertex AI Service Agent is enabled. @@ -334,6 +346,11 @@ message FeatureView { // performed during online serving. IndexConfig index_config = 15 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Configuration for FeatureView created under Optimized + // FeatureOnlineStore. + OptimizedConfig optimized_config = 16 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Service agent type used during data sync. By default, the Vertex // AI Service Agent is used. When using an IAM Policy to isolate this // FeatureView within a project, a separate service account should be diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto index c0a4c2792f6..d4e5ff535c9 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/entity_type.proto"; import "google/cloud/aiplatform/v1beta1/feature.proto"; +import "google/cloud/aiplatform/v1beta1/feature_monitor.proto"; import "google/cloud/aiplatform/v1beta1/feature_selector.proto"; import "google/cloud/aiplatform/v1beta1/featurestore.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; @@ -980,22 +981,25 @@ message CreateFeatureRequest { // Request message for // [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures]. +// Request message for +// [FeatureRegistryService.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeatureRegistryService.BatchCreateFeatures]. message BatchCreateFeaturesRequest { - // Required. The resource name of the EntityType to create the batch of - // Features under. Format: + // Required. The resource name of the EntityType/FeatureGroup to create the + // batch of Features under. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + // `projects/{project}/locations/{location}/featureGroups/{feature_group}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "aiplatform.googleapis.com/EntityType" + child_type: "aiplatform.googleapis.com/Feature" } ]; // Required. The request message specifying the Features to create. All - // Features must be created under the same parent EntityType. The `parent` - // field in each child request message can be omitted. If `parent` is set in a - // child request, then the value must match the `parent` value in this request - // message. + // Features must be created under the same parent EntityType / FeatureGroup. + // The `parent` field in each child request message can be omitted. If + // `parent` is set in a child request, then the value must match the `parent` + // value in this request message. repeated CreateFeatureRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -1023,6 +1027,12 @@ message GetFeatureRequest { type: "aiplatform.googleapis.com/Feature" } ]; + + // Optional. Only applicable for Vertex AI Feature Store. + // If set, retrieves FeatureStatsAndAnomaly generated by FeatureMonitors based + // on this spec. + FeatureStatsAndAnomalySpec feature_stats_and_anomaly_spec = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Request message for diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/notebook_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/notebook_service.proto index 66880fd4921..f0abf485ee9 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/notebook_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/notebook_service.proto @@ -172,6 +172,20 @@ service NotebookService { }; } + // Stops a NotebookRuntime. + rpc StopNotebookRuntime(StopNotebookRuntimeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/notebookRuntimes/*}:stop" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "StopNotebookRuntimeResponse" + metadata_type: "StopNotebookRuntimeOperationMetadata" + }; + } + // Creates a NotebookExecutionJob. rpc CreateNotebookExecutionJob(CreateNotebookExecutionJobRequest) returns (google.longrunning.Operation) { @@ -598,6 +612,32 @@ message StartNotebookRuntimeOperationMetadata { // [NotebookService.StartNotebookRuntime][google.cloud.aiplatform.v1beta1.NotebookService.StartNotebookRuntime]. message StartNotebookRuntimeResponse {} +// Request message for +// [NotebookService.StopNotebookRuntime][google.cloud.aiplatform.v1beta1.NotebookService.StopNotebookRuntime]. +message StopNotebookRuntimeRequest { + // Required. The name of the NotebookRuntime resource to be stopped. + // Instead of checking whether the name is in valid NotebookRuntime resource + // name format, directly throw NotFound exception if there is no such + // NotebookRuntime in spanner. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NotebookRuntime" + } + ]; +} + +// Metadata information for +// [NotebookService.StopNotebookRuntime][google.cloud.aiplatform.v1beta1.NotebookService.StopNotebookRuntime]. +message StopNotebookRuntimeOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + +// Response message for +// [NotebookService.StopNotebookRuntime][google.cloud.aiplatform.v1beta1.NotebookService.StopNotebookRuntime]. +message StopNotebookRuntimeResponse {} + // Request message for [NotebookService.CreateNotebookExecutionJob] message CreateNotebookExecutionJobRequest { // Required. The resource name of the Location to create the diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tuning_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tuning_job.proto index a42e468fb97..a750d68417d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tuning_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tuning_job.proto @@ -148,6 +148,15 @@ message TuningJob { // then all resources created by the TuningJob will be encrypted with the // provided encryption key. EncryptionSpec encryption_spec = 16; + + // The service account that the tuningJob workload runs as. + // If not specified, the Vertex AI Secure Fine-Tuned Service Agent in the + // project will be used. See + // https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent + // + // Users starting the pipeline must have the `iam.serviceAccounts.actAs` + // permission on this service account. + string service_account = 22; } // The Model Registry Model and Online Prediction Endpoint assiociated with diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index 67dfd15624d..85bf3e0b078 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -12054,6 +12054,9 @@ export namespace google { /** FunctionDeclaration parameters */ parameters?: (google.cloud.aiplatform.v1.ISchema|null); + + /** FunctionDeclaration response */ + response?: (google.cloud.aiplatform.v1.ISchema|null); } /** Represents a FunctionDeclaration. */ @@ -12074,6 +12077,9 @@ export namespace google { /** FunctionDeclaration parameters. */ public parameters?: (google.cloud.aiplatform.v1.ISchema|null); + /** FunctionDeclaration response. */ + public response?: (google.cloud.aiplatform.v1.ISchema|null); + /** * Creates a new FunctionDeclaration instance using the specified properties. * @param [properties] Properties to set @@ -21599,6 +21605,9 @@ export namespace google { /** DeployedModel privateEndpoints */ privateEndpoints?: (google.cloud.aiplatform.v1.IPrivateEndpoints|null); + + /** DeployedModel systemLabels */ + systemLabels?: ({ [k: string]: string }|null); } /** Represents a DeployedModel. */ @@ -21652,6 +21661,9 @@ export namespace google { /** DeployedModel privateEndpoints. */ public privateEndpoints?: (google.cloud.aiplatform.v1.IPrivateEndpoints|null); + /** DeployedModel systemLabels. */ + public systemLabels: { [k: string]: string }; + /** DeployedModel predictionResources. */ public predictionResources?: ("dedicatedResources"|"automaticResources"|"sharedResources"); @@ -25307,6 +25319,12 @@ export namespace google { /** EvaluateInstancesRequest toolParameterKvMatchInput */ toolParameterKvMatchInput?: (google.cloud.aiplatform.v1.IToolParameterKVMatchInput|null); + /** EvaluateInstancesRequest cometInput */ + cometInput?: (google.cloud.aiplatform.v1.ICometInput|null); + + /** EvaluateInstancesRequest metricxInput */ + metricxInput?: (google.cloud.aiplatform.v1.IMetricxInput|null); + /** EvaluateInstancesRequest location */ location?: (string|null); } @@ -25389,11 +25407,17 @@ export namespace google { /** EvaluateInstancesRequest toolParameterKvMatchInput. */ public toolParameterKvMatchInput?: (google.cloud.aiplatform.v1.IToolParameterKVMatchInput|null); + /** EvaluateInstancesRequest cometInput. */ + public cometInput?: (google.cloud.aiplatform.v1.ICometInput|null); + + /** EvaluateInstancesRequest metricxInput. */ + public metricxInput?: (google.cloud.aiplatform.v1.IMetricxInput|null); + /** EvaluateInstancesRequest location. */ public location: string; /** EvaluateInstancesRequest metricInputs. */ - public metricInputs?: ("exactMatchInput"|"bleuInput"|"rougeInput"|"fluencyInput"|"coherenceInput"|"safetyInput"|"groundednessInput"|"fulfillmentInput"|"summarizationQualityInput"|"pairwiseSummarizationQualityInput"|"summarizationHelpfulnessInput"|"summarizationVerbosityInput"|"questionAnsweringQualityInput"|"pairwiseQuestionAnsweringQualityInput"|"questionAnsweringRelevanceInput"|"questionAnsweringHelpfulnessInput"|"questionAnsweringCorrectnessInput"|"pointwiseMetricInput"|"pairwiseMetricInput"|"toolCallValidInput"|"toolNameMatchInput"|"toolParameterKeyMatchInput"|"toolParameterKvMatchInput"); + public metricInputs?: ("exactMatchInput"|"bleuInput"|"rougeInput"|"fluencyInput"|"coherenceInput"|"safetyInput"|"groundednessInput"|"fulfillmentInput"|"summarizationQualityInput"|"pairwiseSummarizationQualityInput"|"summarizationHelpfulnessInput"|"summarizationVerbosityInput"|"questionAnsweringQualityInput"|"pairwiseQuestionAnsweringQualityInput"|"questionAnsweringRelevanceInput"|"questionAnsweringHelpfulnessInput"|"questionAnsweringCorrectnessInput"|"pointwiseMetricInput"|"pairwiseMetricInput"|"toolCallValidInput"|"toolNameMatchInput"|"toolParameterKeyMatchInput"|"toolParameterKvMatchInput"|"cometInput"|"metricxInput"); /** * Creates a new EvaluateInstancesRequest instance using the specified properties. @@ -25544,6 +25568,12 @@ export namespace google { /** EvaluateInstancesResponse toolParameterKvMatchResults */ toolParameterKvMatchResults?: (google.cloud.aiplatform.v1.IToolParameterKVMatchResults|null); + + /** EvaluateInstancesResponse cometResult */ + cometResult?: (google.cloud.aiplatform.v1.ICometResult|null); + + /** EvaluateInstancesResponse metricxResult */ + metricxResult?: (google.cloud.aiplatform.v1.IMetricxResult|null); } /** Represents an EvaluateInstancesResponse. */ @@ -25624,8 +25654,14 @@ export namespace google { /** EvaluateInstancesResponse toolParameterKvMatchResults. */ public toolParameterKvMatchResults?: (google.cloud.aiplatform.v1.IToolParameterKVMatchResults|null); + /** EvaluateInstancesResponse cometResult. */ + public cometResult?: (google.cloud.aiplatform.v1.ICometResult|null); + + /** EvaluateInstancesResponse metricxResult. */ + public metricxResult?: (google.cloud.aiplatform.v1.IMetricxResult|null); + /** EvaluateInstancesResponse evaluationResults. */ - public evaluationResults?: ("exactMatchResults"|"bleuResults"|"rougeResults"|"fluencyResult"|"coherenceResult"|"safetyResult"|"groundednessResult"|"fulfillmentResult"|"summarizationQualityResult"|"pairwiseSummarizationQualityResult"|"summarizationHelpfulnessResult"|"summarizationVerbosityResult"|"questionAnsweringQualityResult"|"pairwiseQuestionAnsweringQualityResult"|"questionAnsweringRelevanceResult"|"questionAnsweringHelpfulnessResult"|"questionAnsweringCorrectnessResult"|"pointwiseMetricResult"|"pairwiseMetricResult"|"toolCallValidResults"|"toolNameMatchResults"|"toolParameterKeyMatchResults"|"toolParameterKvMatchResults"); + public evaluationResults?: ("exactMatchResults"|"bleuResults"|"rougeResults"|"fluencyResult"|"coherenceResult"|"safetyResult"|"groundednessResult"|"fulfillmentResult"|"summarizationQualityResult"|"pairwiseSummarizationQualityResult"|"summarizationHelpfulnessResult"|"summarizationVerbosityResult"|"questionAnsweringQualityResult"|"pairwiseQuestionAnsweringQualityResult"|"questionAnsweringRelevanceResult"|"questionAnsweringHelpfulnessResult"|"questionAnsweringCorrectnessResult"|"pointwiseMetricResult"|"pairwiseMetricResult"|"toolCallValidResults"|"toolNameMatchResults"|"toolParameterKeyMatchResults"|"toolParameterKvMatchResults"|"cometResult"|"metricxResult"); /** * Creates a new EvaluateInstancesResponse instance using the specified properties. @@ -36187,6 +36223,892 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CometInput. */ + interface ICometInput { + + /** CometInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.ICometSpec|null); + + /** CometInput instance */ + instance?: (google.cloud.aiplatform.v1.ICometInstance|null); + } + + /** Represents a CometInput. */ + class CometInput implements ICometInput { + + /** + * Constructs a new CometInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICometInput); + + /** CometInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.ICometSpec|null); + + /** CometInput instance. */ + public instance?: (google.cloud.aiplatform.v1.ICometInstance|null); + + /** + * Creates a new CometInput instance using the specified properties. + * @param [properties] Properties to set + * @returns CometInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICometInput): google.cloud.aiplatform.v1.CometInput; + + /** + * Encodes the specified CometInput message. Does not implicitly {@link google.cloud.aiplatform.v1.CometInput.verify|verify} messages. + * @param message CometInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICometInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CometInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CometInput.verify|verify} messages. + * @param message CometInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICometInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CometInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CometInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CometInput; + + /** + * Decodes a CometInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CometInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CometInput; + + /** + * Verifies a CometInput message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CometInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CometInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CometInput; + + /** + * Creates a plain object from a CometInput message. Also converts values to other types if specified. + * @param message CometInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CometInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CometInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CometInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CometSpec. */ + interface ICometSpec { + + /** CometSpec version */ + version?: (google.cloud.aiplatform.v1.CometSpec.CometVersion|keyof typeof google.cloud.aiplatform.v1.CometSpec.CometVersion|null); + + /** CometSpec sourceLanguage */ + sourceLanguage?: (string|null); + + /** CometSpec targetLanguage */ + targetLanguage?: (string|null); + } + + /** Represents a CometSpec. */ + class CometSpec implements ICometSpec { + + /** + * Constructs a new CometSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICometSpec); + + /** CometSpec version. */ + public version?: (google.cloud.aiplatform.v1.CometSpec.CometVersion|keyof typeof google.cloud.aiplatform.v1.CometSpec.CometVersion|null); + + /** CometSpec sourceLanguage. */ + public sourceLanguage: string; + + /** CometSpec targetLanguage. */ + public targetLanguage: string; + + /** CometSpec _version. */ + public _version?: "version"; + + /** + * Creates a new CometSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns CometSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICometSpec): google.cloud.aiplatform.v1.CometSpec; + + /** + * Encodes the specified CometSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.CometSpec.verify|verify} messages. + * @param message CometSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICometSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CometSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CometSpec.verify|verify} messages. + * @param message CometSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICometSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CometSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CometSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CometSpec; + + /** + * Decodes a CometSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CometSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CometSpec; + + /** + * Verifies a CometSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CometSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CometSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CometSpec; + + /** + * Creates a plain object from a CometSpec message. Also converts values to other types if specified. + * @param message CometSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CometSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CometSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CometSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CometSpec { + + /** CometVersion enum. */ + enum CometVersion { + COMET_VERSION_UNSPECIFIED = 0, + COMET_22_SRC_REF = 2 + } + } + + /** Properties of a CometInstance. */ + interface ICometInstance { + + /** CometInstance prediction */ + prediction?: (string|null); + + /** CometInstance reference */ + reference?: (string|null); + + /** CometInstance source */ + source?: (string|null); + } + + /** Represents a CometInstance. */ + class CometInstance implements ICometInstance { + + /** + * Constructs a new CometInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICometInstance); + + /** CometInstance prediction. */ + public prediction?: (string|null); + + /** CometInstance reference. */ + public reference?: (string|null); + + /** CometInstance source. */ + public source?: (string|null); + + /** CometInstance _prediction. */ + public _prediction?: "prediction"; + + /** CometInstance _reference. */ + public _reference?: "reference"; + + /** CometInstance _source. */ + public _source?: "source"; + + /** + * Creates a new CometInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns CometInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICometInstance): google.cloud.aiplatform.v1.CometInstance; + + /** + * Encodes the specified CometInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.CometInstance.verify|verify} messages. + * @param message CometInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICometInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CometInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CometInstance.verify|verify} messages. + * @param message CometInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICometInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CometInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CometInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CometInstance; + + /** + * Decodes a CometInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CometInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CometInstance; + + /** + * Verifies a CometInstance message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CometInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CometInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CometInstance; + + /** + * Creates a plain object from a CometInstance message. Also converts values to other types if specified. + * @param message CometInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CometInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CometInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CometInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CometResult. */ + interface ICometResult { + + /** CometResult score */ + score?: (number|null); + } + + /** Represents a CometResult. */ + class CometResult implements ICometResult { + + /** + * Constructs a new CometResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICometResult); + + /** CometResult score. */ + public score?: (number|null); + + /** CometResult _score. */ + public _score?: "score"; + + /** + * Creates a new CometResult instance using the specified properties. + * @param [properties] Properties to set + * @returns CometResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICometResult): google.cloud.aiplatform.v1.CometResult; + + /** + * Encodes the specified CometResult message. Does not implicitly {@link google.cloud.aiplatform.v1.CometResult.verify|verify} messages. + * @param message CometResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICometResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CometResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CometResult.verify|verify} messages. + * @param message CometResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICometResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CometResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CometResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CometResult; + + /** + * Decodes a CometResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CometResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CometResult; + + /** + * Verifies a CometResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CometResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CometResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CometResult; + + /** + * Creates a plain object from a CometResult message. Also converts values to other types if specified. + * @param message CometResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CometResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CometResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CometResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MetricxInput. */ + interface IMetricxInput { + + /** MetricxInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IMetricxSpec|null); + + /** MetricxInput instance */ + instance?: (google.cloud.aiplatform.v1.IMetricxInstance|null); + } + + /** Represents a MetricxInput. */ + class MetricxInput implements IMetricxInput { + + /** + * Constructs a new MetricxInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IMetricxInput); + + /** MetricxInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IMetricxSpec|null); + + /** MetricxInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IMetricxInstance|null); + + /** + * Creates a new MetricxInput instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricxInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IMetricxInput): google.cloud.aiplatform.v1.MetricxInput; + + /** + * Encodes the specified MetricxInput message. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxInput.verify|verify} messages. + * @param message MetricxInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IMetricxInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetricxInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxInput.verify|verify} messages. + * @param message MetricxInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetricxInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricxInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricxInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MetricxInput; + + /** + * Decodes a MetricxInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricxInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MetricxInput; + + /** + * Verifies a MetricxInput message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MetricxInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricxInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetricxInput; + + /** + * Creates a plain object from a MetricxInput message. Also converts values to other types if specified. + * @param message MetricxInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MetricxInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricxInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricxInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MetricxSpec. */ + interface IMetricxSpec { + + /** MetricxSpec version */ + version?: (google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion|keyof typeof google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion|null); + + /** MetricxSpec sourceLanguage */ + sourceLanguage?: (string|null); + + /** MetricxSpec targetLanguage */ + targetLanguage?: (string|null); + } + + /** Represents a MetricxSpec. */ + class MetricxSpec implements IMetricxSpec { + + /** + * Constructs a new MetricxSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IMetricxSpec); + + /** MetricxSpec version. */ + public version?: (google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion|keyof typeof google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion|null); + + /** MetricxSpec sourceLanguage. */ + public sourceLanguage: string; + + /** MetricxSpec targetLanguage. */ + public targetLanguage: string; + + /** MetricxSpec _version. */ + public _version?: "version"; + + /** + * Creates a new MetricxSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricxSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IMetricxSpec): google.cloud.aiplatform.v1.MetricxSpec; + + /** + * Encodes the specified MetricxSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxSpec.verify|verify} messages. + * @param message MetricxSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IMetricxSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetricxSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxSpec.verify|verify} messages. + * @param message MetricxSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetricxSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricxSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricxSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MetricxSpec; + + /** + * Decodes a MetricxSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricxSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MetricxSpec; + + /** + * Verifies a MetricxSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MetricxSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricxSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetricxSpec; + + /** + * Creates a plain object from a MetricxSpec message. Also converts values to other types if specified. + * @param message MetricxSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MetricxSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricxSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricxSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MetricxSpec { + + /** MetricxVersion enum. */ + enum MetricxVersion { + METRICX_VERSION_UNSPECIFIED = 0, + METRICX_24_REF = 1, + METRICX_24_SRC = 2, + METRICX_24_SRC_REF = 3 + } + } + + /** Properties of a MetricxInstance. */ + interface IMetricxInstance { + + /** MetricxInstance prediction */ + prediction?: (string|null); + + /** MetricxInstance reference */ + reference?: (string|null); + + /** MetricxInstance source */ + source?: (string|null); + } + + /** Represents a MetricxInstance. */ + class MetricxInstance implements IMetricxInstance { + + /** + * Constructs a new MetricxInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IMetricxInstance); + + /** MetricxInstance prediction. */ + public prediction?: (string|null); + + /** MetricxInstance reference. */ + public reference?: (string|null); + + /** MetricxInstance source. */ + public source?: (string|null); + + /** MetricxInstance _prediction. */ + public _prediction?: "prediction"; + + /** MetricxInstance _reference. */ + public _reference?: "reference"; + + /** MetricxInstance _source. */ + public _source?: "source"; + + /** + * Creates a new MetricxInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricxInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IMetricxInstance): google.cloud.aiplatform.v1.MetricxInstance; + + /** + * Encodes the specified MetricxInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxInstance.verify|verify} messages. + * @param message MetricxInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IMetricxInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetricxInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxInstance.verify|verify} messages. + * @param message MetricxInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetricxInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricxInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricxInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MetricxInstance; + + /** + * Decodes a MetricxInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricxInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MetricxInstance; + + /** + * Verifies a MetricxInstance message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MetricxInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricxInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetricxInstance; + + /** + * Creates a plain object from a MetricxInstance message. Also converts values to other types if specified. + * @param message MetricxInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MetricxInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricxInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricxInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MetricxResult. */ + interface IMetricxResult { + + /** MetricxResult score */ + score?: (number|null); + } + + /** Represents a MetricxResult. */ + class MetricxResult implements IMetricxResult { + + /** + * Constructs a new MetricxResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IMetricxResult); + + /** MetricxResult score. */ + public score?: (number|null); + + /** MetricxResult _score. */ + public _score?: "score"; + + /** + * Creates a new MetricxResult instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricxResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IMetricxResult): google.cloud.aiplatform.v1.MetricxResult; + + /** + * Encodes the specified MetricxResult message. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxResult.verify|verify} messages. + * @param message MetricxResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IMetricxResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetricxResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxResult.verify|verify} messages. + * @param message MetricxResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetricxResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricxResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricxResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MetricxResult; + + /** + * Decodes a MetricxResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricxResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MetricxResult; + + /** + * Verifies a MetricxResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MetricxResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricxResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetricxResult; + + /** + * Creates a plain object from a MetricxResult message. Also converts values to other types if specified. + * @param message MetricxResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MetricxResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricxResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricxResult + * @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 { @@ -45874,6 +46796,20 @@ export namespace google { */ public createFeature(request: google.cloud.aiplatform.v1.ICreateFeatureRequest): Promise; + /** + * 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.v1.IBatchCreateFeaturesRequest, callback: google.cloud.aiplatform.v1.FeatureRegistryService.BatchCreateFeaturesCallback): void; + + /** + * Calls BatchCreateFeatures. + * @param request BatchCreateFeaturesRequest message or plain object + * @returns Promise + */ + public batchCreateFeatures(request: google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest): Promise; + /** * Calls GetFeature. * @param request GetFeatureRequest message or plain object @@ -45975,6 +46911,13 @@ export namespace google { */ type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|batchCreateFeatures}. + * @param error Error, if any + * @param [response] Operation + */ + type BatchCreateFeaturesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|getFeature}. * @param error Error, if any @@ -54253,6 +55196,9 @@ export namespace google { /** TuningJob encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** TuningJob serviceAccount */ + serviceAccount?: (string|null); } /** Represents a TuningJob. */ @@ -54312,6 +55258,9 @@ export namespace google { /** TuningJob encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** TuningJob serviceAccount. */ + public serviceAccount: string; + /** TuningJob sourceModel. */ public sourceModel?: "baseModel"; @@ -147609,6 +148558,9 @@ export namespace google { /** DeployedModel fasterDeploymentConfig */ fasterDeploymentConfig?: (google.cloud.aiplatform.v1beta1.IFasterDeploymentConfig|null); + + /** DeployedModel systemLabels */ + systemLabels?: ({ [k: string]: string }|null); } /** Represents a DeployedModel. */ @@ -147665,6 +148617,9 @@ export namespace google { /** DeployedModel fasterDeploymentConfig. */ public fasterDeploymentConfig?: (google.cloud.aiplatform.v1beta1.IFasterDeploymentConfig|null); + /** DeployedModel systemLabels. */ + public systemLabels: { [k: string]: string }; + /** DeployedModel predictionResources. */ public predictionResources?: ("dedicatedResources"|"automaticResources"|"sharedResources"); @@ -165531,6 +166486,9 @@ export namespace google { /** Feature monitoringStatsAnomalies */ monitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]|null); + /** Feature featureStatsAndAnomaly */ + featureStatsAndAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly[]|null); + /** Feature versionColumnName */ versionColumnName?: (string|null); @@ -165580,6 +166538,9 @@ export namespace google { /** Feature monitoringStatsAnomalies. */ public monitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]; + /** Feature featureStatsAndAnomaly. */ + public featureStatsAndAnomaly: google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly[]; + /** Feature versionColumnName. */ public versionColumnName: string; @@ -165795,6 +166756,690 @@ export namespace google { } } + /** Properties of a FeatureMonitor. */ + interface IFeatureMonitor { + + /** FeatureMonitor name */ + name?: (string|null); + + /** FeatureMonitor createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** FeatureMonitor updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** FeatureMonitor etag */ + etag?: (string|null); + + /** FeatureMonitor labels */ + labels?: ({ [k: string]: string }|null); + + /** FeatureMonitor description */ + description?: (string|null); + + /** FeatureMonitor scheduleConfig */ + scheduleConfig?: (google.cloud.aiplatform.v1beta1.IScheduleConfig|null); + + /** FeatureMonitor featureSelectionConfig */ + featureSelectionConfig?: (google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig|null); + } + + /** Represents a FeatureMonitor. */ + class FeatureMonitor implements IFeatureMonitor { + + /** + * Constructs a new FeatureMonitor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureMonitor); + + /** FeatureMonitor name. */ + public name: string; + + /** FeatureMonitor createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** FeatureMonitor updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** FeatureMonitor etag. */ + public etag: string; + + /** FeatureMonitor labels. */ + public labels: { [k: string]: string }; + + /** FeatureMonitor description. */ + public description: string; + + /** FeatureMonitor scheduleConfig. */ + public scheduleConfig?: (google.cloud.aiplatform.v1beta1.IScheduleConfig|null); + + /** FeatureMonitor featureSelectionConfig. */ + public featureSelectionConfig?: (google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig|null); + + /** + * Creates a new FeatureMonitor instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureMonitor instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureMonitor): google.cloud.aiplatform.v1beta1.FeatureMonitor; + + /** + * Encodes the specified FeatureMonitor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitor.verify|verify} messages. + * @param message FeatureMonitor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureMonitor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureMonitor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitor.verify|verify} messages. + * @param message FeatureMonitor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureMonitor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureMonitor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureMonitor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureMonitor; + + /** + * Decodes a FeatureMonitor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureMonitor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureMonitor; + + /** + * Verifies a FeatureMonitor message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureMonitor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureMonitor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureMonitor; + + /** + * Creates a plain object from a FeatureMonitor message. Also converts values to other types if specified. + * @param message FeatureMonitor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureMonitor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureMonitor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureMonitor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ScheduleConfig. */ + interface IScheduleConfig { + + /** ScheduleConfig cron */ + cron?: (string|null); + } + + /** Represents a ScheduleConfig. */ + class ScheduleConfig implements IScheduleConfig { + + /** + * Constructs a new ScheduleConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IScheduleConfig); + + /** ScheduleConfig cron. */ + public cron: string; + + /** + * Creates a new ScheduleConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ScheduleConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IScheduleConfig): google.cloud.aiplatform.v1beta1.ScheduleConfig; + + /** + * Encodes the specified ScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ScheduleConfig.verify|verify} messages. + * @param message ScheduleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ScheduleConfig.verify|verify} messages. + * @param message ScheduleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ScheduleConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ScheduleConfig; + + /** + * Decodes a ScheduleConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ScheduleConfig; + + /** + * Verifies a ScheduleConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ScheduleConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ScheduleConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ScheduleConfig; + + /** + * Creates a plain object from a ScheduleConfig message. Also converts values to other types if specified. + * @param message ScheduleConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ScheduleConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ScheduleConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FeatureSelectionConfig. */ + interface IFeatureSelectionConfig { + + /** FeatureSelectionConfig featureConfigs */ + featureConfigs?: (google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.IFeatureConfig[]|null); + } + + /** Represents a FeatureSelectionConfig. */ + class FeatureSelectionConfig implements IFeatureSelectionConfig { + + /** + * Constructs a new FeatureSelectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig); + + /** FeatureSelectionConfig featureConfigs. */ + public featureConfigs: google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.IFeatureConfig[]; + + /** + * Creates a new FeatureSelectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSelectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig): google.cloud.aiplatform.v1beta1.FeatureSelectionConfig; + + /** + * Encodes the specified FeatureSelectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.verify|verify} messages. + * @param message FeatureSelectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureSelectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.verify|verify} messages. + * @param message FeatureSelectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureSelectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSelectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureSelectionConfig; + + /** + * Decodes a FeatureSelectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureSelectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureSelectionConfig; + + /** + * Verifies a FeatureSelectionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureSelectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSelectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureSelectionConfig; + + /** + * Creates a plain object from a FeatureSelectionConfig message. Also converts values to other types if specified. + * @param message FeatureSelectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureSelectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureSelectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureSelectionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FeatureSelectionConfig { + + /** Properties of a FeatureConfig. */ + interface IFeatureConfig { + + /** FeatureConfig featureId */ + featureId?: (string|null); + + /** FeatureConfig driftThreshold */ + driftThreshold?: (number|null); + } + + /** Represents a FeatureConfig. */ + class FeatureConfig implements IFeatureConfig { + + /** + * Constructs a new FeatureConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.IFeatureConfig); + + /** FeatureConfig featureId. */ + public featureId: string; + + /** FeatureConfig driftThreshold. */ + public driftThreshold: number; + + /** + * Creates a new FeatureConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.IFeatureConfig): google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig; + + /** + * Encodes the specified FeatureConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig.verify|verify} messages. + * @param message FeatureConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.IFeatureConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig.verify|verify} messages. + * @param message FeatureConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.IFeatureConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig; + + /** + * Decodes a FeatureConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig; + + /** + * Verifies a FeatureConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig; + + /** + * Creates a plain object from a FeatureConfig message. Also converts values to other types if specified. + * @param message FeatureConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a FeatureStatsAndAnomaly. */ + interface IFeatureStatsAndAnomaly { + + /** FeatureStatsAndAnomaly featureId */ + featureId?: (string|null); + + /** FeatureStatsAndAnomaly featureStats */ + featureStats?: (google.protobuf.IValue|null); + + /** FeatureStatsAndAnomaly distributionDeviation */ + distributionDeviation?: (number|null); + + /** FeatureStatsAndAnomaly driftDetectionThreshold */ + driftDetectionThreshold?: (number|null); + + /** FeatureStatsAndAnomaly driftDetected */ + driftDetected?: (boolean|null); + + /** FeatureStatsAndAnomaly statsTime */ + statsTime?: (google.protobuf.ITimestamp|null); + + /** FeatureStatsAndAnomaly featureMonitorJobId */ + featureMonitorJobId?: (number|Long|string|null); + + /** FeatureStatsAndAnomaly featureMonitorId */ + featureMonitorId?: (string|null); + } + + /** Represents a FeatureStatsAndAnomaly. */ + class FeatureStatsAndAnomaly implements IFeatureStatsAndAnomaly { + + /** + * Constructs a new FeatureStatsAndAnomaly. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly); + + /** FeatureStatsAndAnomaly featureId. */ + public featureId: string; + + /** FeatureStatsAndAnomaly featureStats. */ + public featureStats?: (google.protobuf.IValue|null); + + /** FeatureStatsAndAnomaly distributionDeviation. */ + public distributionDeviation: number; + + /** FeatureStatsAndAnomaly driftDetectionThreshold. */ + public driftDetectionThreshold: number; + + /** FeatureStatsAndAnomaly driftDetected. */ + public driftDetected: boolean; + + /** FeatureStatsAndAnomaly statsTime. */ + public statsTime?: (google.protobuf.ITimestamp|null); + + /** FeatureStatsAndAnomaly featureMonitorJobId. */ + public featureMonitorJobId: (number|Long|string); + + /** FeatureStatsAndAnomaly featureMonitorId. */ + public featureMonitorId: string; + + /** + * Creates a new FeatureStatsAndAnomaly instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureStatsAndAnomaly instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly): google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly; + + /** + * Encodes the specified FeatureStatsAndAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.verify|verify} messages. + * @param message FeatureStatsAndAnomaly message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureStatsAndAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.verify|verify} messages. + * @param message FeatureStatsAndAnomaly message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureStatsAndAnomaly message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureStatsAndAnomaly + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly; + + /** + * Decodes a FeatureStatsAndAnomaly message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureStatsAndAnomaly + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly; + + /** + * Verifies a FeatureStatsAndAnomaly message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureStatsAndAnomaly message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureStatsAndAnomaly + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly; + + /** + * Creates a plain object from a FeatureStatsAndAnomaly message. Also converts values to other types if specified. + * @param message FeatureStatsAndAnomaly + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureStatsAndAnomaly to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureStatsAndAnomaly + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FeatureStatsAndAnomalySpec. */ + interface IFeatureStatsAndAnomalySpec { + + /** FeatureStatsAndAnomalySpec latestStatsCount */ + latestStatsCount?: (number|null); + + /** FeatureStatsAndAnomalySpec statsTimeRange */ + statsTimeRange?: (google.type.IInterval|null); + } + + /** Represents a FeatureStatsAndAnomalySpec. */ + class FeatureStatsAndAnomalySpec implements IFeatureStatsAndAnomalySpec { + + /** + * Constructs a new FeatureStatsAndAnomalySpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec); + + /** FeatureStatsAndAnomalySpec latestStatsCount. */ + public latestStatsCount?: (number|null); + + /** FeatureStatsAndAnomalySpec statsTimeRange. */ + public statsTimeRange?: (google.type.IInterval|null); + + /** FeatureStatsAndAnomalySpec _latestStatsCount. */ + public _latestStatsCount?: "latestStatsCount"; + + /** + * Creates a new FeatureStatsAndAnomalySpec instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureStatsAndAnomalySpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec): google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec; + + /** + * Encodes the specified FeatureStatsAndAnomalySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec.verify|verify} messages. + * @param message FeatureStatsAndAnomalySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureStatsAndAnomalySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec.verify|verify} messages. + * @param message FeatureStatsAndAnomalySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureStatsAndAnomalySpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureStatsAndAnomalySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec; + + /** + * Decodes a FeatureStatsAndAnomalySpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureStatsAndAnomalySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec; + + /** + * Verifies a FeatureStatsAndAnomalySpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureStatsAndAnomalySpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureStatsAndAnomalySpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec; + + /** + * Creates a plain object from a FeatureStatsAndAnomalySpec message. Also converts values to other types if specified. + * @param message FeatureStatsAndAnomalySpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureStatsAndAnomalySpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureStatsAndAnomalySpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a FeatureGroup. */ interface IFeatureGroup { @@ -166155,6 +167800,270 @@ export namespace google { } } + /** Properties of a FeatureMonitorJob. */ + interface IFeatureMonitorJob { + + /** FeatureMonitorJob name */ + name?: (string|null); + + /** FeatureMonitorJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** FeatureMonitorJob finalStatus */ + finalStatus?: (google.rpc.IStatus|null); + + /** FeatureMonitorJob jobSummary */ + jobSummary?: (google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary|null); + + /** FeatureMonitorJob labels */ + labels?: ({ [k: string]: string }|null); + + /** FeatureMonitorJob description */ + description?: (string|null); + + /** FeatureMonitorJob driftBaseFeatureMonitorJobId */ + driftBaseFeatureMonitorJobId?: (number|Long|string|null); + + /** FeatureMonitorJob driftBaseSnapshotTime */ + driftBaseSnapshotTime?: (google.protobuf.ITimestamp|null); + + /** FeatureMonitorJob featureSelectionConfig */ + featureSelectionConfig?: (google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig|null); + + /** FeatureMonitorJob triggerType */ + triggerType?: (google.cloud.aiplatform.v1beta1.FeatureMonitorJob.FeatureMonitorJobTrigger|keyof typeof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.FeatureMonitorJobTrigger|null); + } + + /** Represents a FeatureMonitorJob. */ + class FeatureMonitorJob implements IFeatureMonitorJob { + + /** + * Constructs a new FeatureMonitorJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureMonitorJob); + + /** FeatureMonitorJob name. */ + public name: string; + + /** FeatureMonitorJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** FeatureMonitorJob finalStatus. */ + public finalStatus?: (google.rpc.IStatus|null); + + /** FeatureMonitorJob jobSummary. */ + public jobSummary?: (google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary|null); + + /** FeatureMonitorJob labels. */ + public labels: { [k: string]: string }; + + /** FeatureMonitorJob description. */ + public description: string; + + /** FeatureMonitorJob driftBaseFeatureMonitorJobId. */ + public driftBaseFeatureMonitorJobId: (number|Long|string); + + /** FeatureMonitorJob driftBaseSnapshotTime. */ + public driftBaseSnapshotTime?: (google.protobuf.ITimestamp|null); + + /** FeatureMonitorJob featureSelectionConfig. */ + public featureSelectionConfig?: (google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig|null); + + /** FeatureMonitorJob triggerType. */ + public triggerType: (google.cloud.aiplatform.v1beta1.FeatureMonitorJob.FeatureMonitorJobTrigger|keyof typeof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.FeatureMonitorJobTrigger); + + /** + * Creates a new FeatureMonitorJob instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureMonitorJob instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureMonitorJob): google.cloud.aiplatform.v1beta1.FeatureMonitorJob; + + /** + * Encodes the specified FeatureMonitorJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitorJob.verify|verify} messages. + * @param message FeatureMonitorJob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureMonitorJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitorJob.verify|verify} messages. + * @param message FeatureMonitorJob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureMonitorJob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureMonitorJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureMonitorJob; + + /** + * Decodes a FeatureMonitorJob message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureMonitorJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureMonitorJob; + + /** + * Verifies a FeatureMonitorJob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FeatureMonitorJob message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureMonitorJob + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureMonitorJob; + + /** + * Creates a plain object from a FeatureMonitorJob message. Also converts values to other types if specified. + * @param message FeatureMonitorJob + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureMonitorJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureMonitorJob to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureMonitorJob + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FeatureMonitorJob { + + /** Properties of a JobSummary. */ + interface IJobSummary { + + /** JobSummary totalSlotMs */ + totalSlotMs?: (number|Long|string|null); + + /** JobSummary featureStatsAndAnomalies */ + featureStatsAndAnomalies?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly[]|null); + } + + /** Represents a JobSummary. */ + class JobSummary implements IJobSummary { + + /** + * Constructs a new JobSummary. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary); + + /** JobSummary totalSlotMs. */ + public totalSlotMs: (number|Long|string); + + /** JobSummary featureStatsAndAnomalies. */ + public featureStatsAndAnomalies: google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly[]; + + /** + * Creates a new JobSummary instance using the specified properties. + * @param [properties] Properties to set + * @returns JobSummary instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary): google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary; + + /** + * Encodes the specified JobSummary message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary.verify|verify} messages. + * @param message JobSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified JobSummary message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary.verify|verify} messages. + * @param message JobSummary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a JobSummary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns JobSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary; + + /** + * Decodes a JobSummary message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns JobSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary; + + /** + * Verifies a JobSummary message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a JobSummary message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns JobSummary + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary; + + /** + * Creates a plain object from a JobSummary message. Also converts values to other types if specified. + * @param message JobSummary + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this JobSummary to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for JobSummary + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** FeatureMonitorJobTrigger enum. */ + enum FeatureMonitorJobTrigger { + FEATURE_MONITOR_JOB_TRIGGER_UNSPECIFIED = 0, + FEATURE_MONITOR_JOB_TRIGGER_PERIODIC = 1, + FEATURE_MONITOR_JOB_TRIGGER_ON_DEMAND = 2 + } + } + /** Properties of a FeatureOnlineStore. */ interface IFeatureOnlineStore { @@ -169351,6 +171260,9 @@ export namespace google { /** FeatureView indexConfig */ indexConfig?: (google.cloud.aiplatform.v1beta1.FeatureView.IIndexConfig|null); + /** FeatureView optimizedConfig */ + optimizedConfig?: (google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig|null); + /** FeatureView serviceAgentType */ serviceAgentType?: (google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType|keyof typeof google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType|null); @@ -169406,6 +171318,9 @@ export namespace google { /** FeatureView indexConfig. */ public indexConfig?: (google.cloud.aiplatform.v1beta1.FeatureView.IIndexConfig|null); + /** FeatureView optimizedConfig. */ + public optimizedConfig?: (google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig|null); + /** FeatureView serviceAgentType. */ public serviceAgentType: (google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType|keyof typeof google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType); @@ -170698,6 +172613,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an OptimizedConfig. */ + interface IOptimizedConfig { + + /** OptimizedConfig automaticResources */ + automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + } + + /** Represents an OptimizedConfig. */ + class OptimizedConfig implements IOptimizedConfig { + + /** + * Constructs a new OptimizedConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig); + + /** OptimizedConfig automaticResources. */ + public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + + /** + * Creates a new OptimizedConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns OptimizedConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig): google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig; + + /** + * Encodes the specified OptimizedConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig.verify|verify} messages. + * @param message OptimizedConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OptimizedConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig.verify|verify} messages. + * @param message OptimizedConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OptimizedConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OptimizedConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig; + + /** + * Decodes an OptimizedConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OptimizedConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig; + + /** + * Verifies an OptimizedConfig message. + * @param message Plain 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 OptimizedConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OptimizedConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig; + + /** + * Creates a plain object from an OptimizedConfig message. Also converts values to other types if specified. + * @param message OptimizedConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OptimizedConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OptimizedConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** ServiceAgentType enum. */ enum ServiceAgentType { SERVICE_AGENT_TYPE_UNSPECIFIED = 0, @@ -175486,6 +177498,20 @@ export namespace google { */ public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): Promise; + /** + * 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.FeatureRegistryService.BatchCreateFeaturesCallback): void; + + /** + * Calls BatchCreateFeatures. + * @param request BatchCreateFeaturesRequest message or plain object + * @returns Promise + */ + public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): Promise; + /** * Calls GetFeature. * @param request GetFeatureRequest message or plain object @@ -175541,6 +177567,104 @@ export namespace google { * @returns Promise */ public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): Promise; + + /** + * Calls CreateFeatureMonitor. + * @param request CreateFeatureMonitorRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createFeatureMonitor(request: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest, callback: google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitorCallback): void; + + /** + * Calls CreateFeatureMonitor. + * @param request CreateFeatureMonitorRequest message or plain object + * @returns Promise + */ + public createFeatureMonitor(request: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest): Promise; + + /** + * Calls GetFeatureMonitor. + * @param request GetFeatureMonitorRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FeatureMonitor + */ + public getFeatureMonitor(request: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest, callback: google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitorCallback): void; + + /** + * Calls GetFeatureMonitor. + * @param request GetFeatureMonitorRequest message or plain object + * @returns Promise + */ + public getFeatureMonitor(request: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest): Promise; + + /** + * Calls ListFeatureMonitors. + * @param request ListFeatureMonitorsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeatureMonitorsResponse + */ + public listFeatureMonitors(request: google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, callback: google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorsCallback): void; + + /** + * Calls ListFeatureMonitors. + * @param request ListFeatureMonitorsRequest message or plain object + * @returns Promise + */ + public listFeatureMonitors(request: google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest): Promise; + + /** + * Calls DeleteFeatureMonitor. + * @param request DeleteFeatureMonitorRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeatureMonitor(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest, callback: google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeatureMonitorCallback): void; + + /** + * Calls DeleteFeatureMonitor. + * @param request DeleteFeatureMonitorRequest message or plain object + * @returns Promise + */ + public deleteFeatureMonitor(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest): Promise; + + /** + * Calls CreateFeatureMonitorJob. + * @param request CreateFeatureMonitorJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FeatureMonitorJob + */ + public createFeatureMonitorJob(request: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest, callback: google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitorJobCallback): void; + + /** + * Calls CreateFeatureMonitorJob. + * @param request CreateFeatureMonitorJobRequest message or plain object + * @returns Promise + */ + public createFeatureMonitorJob(request: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest): Promise; + + /** + * Calls GetFeatureMonitorJob. + * @param request GetFeatureMonitorJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FeatureMonitorJob + */ + public getFeatureMonitorJob(request: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest, callback: google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitorJobCallback): void; + + /** + * Calls GetFeatureMonitorJob. + * @param request GetFeatureMonitorJobRequest message or plain object + * @returns Promise + */ + public getFeatureMonitorJob(request: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest): Promise; + + /** + * Calls ListFeatureMonitorJobs. + * @param request ListFeatureMonitorJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeatureMonitorJobsResponse + */ + public listFeatureMonitorJobs(request: google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, callback: google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobsCallback): void; + + /** + * Calls ListFeatureMonitorJobs. + * @param request ListFeatureMonitorJobsRequest message or plain object + * @returns Promise + */ + public listFeatureMonitorJobs(request: google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest): Promise; } namespace FeatureRegistryService { @@ -175587,6 +177711,13 @@ export namespace google { */ type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|batchCreateFeatures}. + * @param error Error, if any + * @param [response] Operation + */ + type BatchCreateFeaturesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|getFeature}. * @param error Error, if any @@ -175614,6 +177745,55 @@ export namespace google { * @param [response] Operation */ type DeleteFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|createFeatureMonitor}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateFeatureMonitorCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|getFeatureMonitor}. + * @param error Error, if any + * @param [response] FeatureMonitor + */ + type GetFeatureMonitorCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.FeatureMonitor) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|listFeatureMonitors}. + * @param error Error, if any + * @param [response] ListFeatureMonitorsResponse + */ + type ListFeatureMonitorsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|deleteFeatureMonitor}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteFeatureMonitorCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|createFeatureMonitorJob}. + * @param error Error, if any + * @param [response] FeatureMonitorJob + */ + type CreateFeatureMonitorJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.FeatureMonitorJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|getFeatureMonitorJob}. + * @param error Error, if any + * @param [response] FeatureMonitorJob + */ + type GetFeatureMonitorJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.FeatureMonitorJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|listFeatureMonitorJobs}. + * @param error Error, if any + * @param [response] ListFeatureMonitorJobsResponse + */ + type ListFeatureMonitorJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse) => void; } /** Properties of a CreateFeatureGroupRequest. */ @@ -176252,6 +178432,533 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CreateFeatureMonitorRequest. */ + interface ICreateFeatureMonitorRequest { + + /** CreateFeatureMonitorRequest parent */ + parent?: (string|null); + + /** CreateFeatureMonitorRequest featureMonitor */ + featureMonitor?: (google.cloud.aiplatform.v1beta1.IFeatureMonitor|null); + + /** CreateFeatureMonitorRequest featureMonitorId */ + featureMonitorId?: (string|null); + } + + /** Represents a CreateFeatureMonitorRequest. */ + class CreateFeatureMonitorRequest implements ICreateFeatureMonitorRequest { + + /** + * Constructs a new CreateFeatureMonitorRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest); + + /** CreateFeatureMonitorRequest parent. */ + public parent: string; + + /** CreateFeatureMonitorRequest featureMonitor. */ + public featureMonitor?: (google.cloud.aiplatform.v1beta1.IFeatureMonitor|null); + + /** CreateFeatureMonitorRequest featureMonitorId. */ + public featureMonitorId: string; + + /** + * Creates a new CreateFeatureMonitorRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFeatureMonitorRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest; + + /** + * Encodes the specified CreateFeatureMonitorRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest.verify|verify} messages. + * @param message CreateFeatureMonitorRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateFeatureMonitorRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest.verify|verify} messages. + * @param message CreateFeatureMonitorRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateFeatureMonitorRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest; + + /** + * Decodes a CreateFeatureMonitorRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest; + + /** + * Verifies a CreateFeatureMonitorRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateFeatureMonitorRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFeatureMonitorRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest; + + /** + * Creates a plain object from a CreateFeatureMonitorRequest message. Also converts values to other types if specified. + * @param message CreateFeatureMonitorRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateFeatureMonitorRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateFeatureMonitorRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetFeatureMonitorRequest. */ + interface IGetFeatureMonitorRequest { + + /** GetFeatureMonitorRequest name */ + name?: (string|null); + } + + /** Represents a GetFeatureMonitorRequest. */ + class GetFeatureMonitorRequest implements IGetFeatureMonitorRequest { + + /** + * Constructs a new GetFeatureMonitorRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest); + + /** GetFeatureMonitorRequest name. */ + public name: string; + + /** + * Creates a new GetFeatureMonitorRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFeatureMonitorRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest): google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest; + + /** + * Encodes the specified GetFeatureMonitorRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest.verify|verify} messages. + * @param message GetFeatureMonitorRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetFeatureMonitorRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest.verify|verify} messages. + * @param message GetFeatureMonitorRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetFeatureMonitorRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest; + + /** + * Decodes a GetFeatureMonitorRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest; + + /** + * Verifies a GetFeatureMonitorRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetFeatureMonitorRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFeatureMonitorRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest; + + /** + * Creates a plain object from a GetFeatureMonitorRequest message. Also converts values to other types if specified. + * @param message GetFeatureMonitorRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetFeatureMonitorRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetFeatureMonitorRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListFeatureMonitorsRequest. */ + interface IListFeatureMonitorsRequest { + + /** ListFeatureMonitorsRequest parent */ + parent?: (string|null); + + /** ListFeatureMonitorsRequest filter */ + filter?: (string|null); + + /** ListFeatureMonitorsRequest pageSize */ + pageSize?: (number|null); + + /** ListFeatureMonitorsRequest pageToken */ + pageToken?: (string|null); + + /** ListFeatureMonitorsRequest orderBy */ + orderBy?: (string|null); + } + + /** Represents a ListFeatureMonitorsRequest. */ + class ListFeatureMonitorsRequest implements IListFeatureMonitorsRequest { + + /** + * Constructs a new ListFeatureMonitorsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest); + + /** ListFeatureMonitorsRequest parent. */ + public parent: string; + + /** ListFeatureMonitorsRequest filter. */ + public filter: string; + + /** ListFeatureMonitorsRequest pageSize. */ + public pageSize: number; + + /** ListFeatureMonitorsRequest pageToken. */ + public pageToken: string; + + /** ListFeatureMonitorsRequest orderBy. */ + public orderBy: string; + + /** + * Creates a new ListFeatureMonitorsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFeatureMonitorsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest): google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest; + + /** + * Encodes the specified ListFeatureMonitorsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest.verify|verify} messages. + * @param message ListFeatureMonitorsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListFeatureMonitorsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest.verify|verify} messages. + * @param message ListFeatureMonitorsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListFeatureMonitorsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFeatureMonitorsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest; + + /** + * Decodes a ListFeatureMonitorsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFeatureMonitorsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest; + + /** + * Verifies a ListFeatureMonitorsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListFeatureMonitorsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFeatureMonitorsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest; + + /** + * Creates a plain object from a ListFeatureMonitorsRequest message. Also converts values to other types if specified. + * @param message ListFeatureMonitorsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListFeatureMonitorsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListFeatureMonitorsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteFeatureMonitorRequest. */ + interface IDeleteFeatureMonitorRequest { + + /** DeleteFeatureMonitorRequest name */ + name?: (string|null); + } + + /** Represents a DeleteFeatureMonitorRequest. */ + class DeleteFeatureMonitorRequest implements IDeleteFeatureMonitorRequest { + + /** + * Constructs a new DeleteFeatureMonitorRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest); + + /** DeleteFeatureMonitorRequest name. */ + public name: string; + + /** + * Creates a new DeleteFeatureMonitorRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFeatureMonitorRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest; + + /** + * Encodes the specified DeleteFeatureMonitorRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest.verify|verify} messages. + * @param message DeleteFeatureMonitorRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteFeatureMonitorRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest.verify|verify} messages. + * @param message DeleteFeatureMonitorRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteFeatureMonitorRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest; + + /** + * Decodes a DeleteFeatureMonitorRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest; + + /** + * Verifies a DeleteFeatureMonitorRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteFeatureMonitorRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFeatureMonitorRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest; + + /** + * Creates a plain object from a DeleteFeatureMonitorRequest message. Also converts values to other types if specified. + * @param message DeleteFeatureMonitorRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteFeatureMonitorRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteFeatureMonitorRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListFeatureMonitorsResponse. */ + interface IListFeatureMonitorsResponse { + + /** ListFeatureMonitorsResponse featureMonitors */ + featureMonitors?: (google.cloud.aiplatform.v1beta1.IFeatureMonitor[]|null); + + /** ListFeatureMonitorsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListFeatureMonitorsResponse. */ + class ListFeatureMonitorsResponse implements IListFeatureMonitorsResponse { + + /** + * Constructs a new ListFeatureMonitorsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse); + + /** ListFeatureMonitorsResponse featureMonitors. */ + public featureMonitors: google.cloud.aiplatform.v1beta1.IFeatureMonitor[]; + + /** ListFeatureMonitorsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListFeatureMonitorsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFeatureMonitorsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse): google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse; + + /** + * Encodes the specified ListFeatureMonitorsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse.verify|verify} messages. + * @param message ListFeatureMonitorsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListFeatureMonitorsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse.verify|verify} messages. + * @param message ListFeatureMonitorsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListFeatureMonitorsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFeatureMonitorsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse; + + /** + * Decodes a ListFeatureMonitorsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFeatureMonitorsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse; + + /** + * Verifies a ListFeatureMonitorsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListFeatureMonitorsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFeatureMonitorsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse; + + /** + * Creates a plain object from a ListFeatureMonitorsResponse message. Also converts values to other types if specified. + * @param message ListFeatureMonitorsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListFeatureMonitorsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListFeatureMonitorsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CreateFeatureGroupOperationMetadata. */ interface ICreateFeatureGroupOperationMetadata { @@ -176640,6 +179347,533 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CreateFeatureMonitorOperationMetadata. */ + interface ICreateFeatureMonitorOperationMetadata { + + /** CreateFeatureMonitorOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } + + /** Represents a CreateFeatureMonitorOperationMetadata. */ + class CreateFeatureMonitorOperationMetadata implements ICreateFeatureMonitorOperationMetadata { + + /** + * Constructs a new CreateFeatureMonitorOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata); + + /** CreateFeatureMonitorOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** + * Creates a new CreateFeatureMonitorOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFeatureMonitorOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata; + + /** + * Encodes the specified CreateFeatureMonitorOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata.verify|verify} messages. + * @param message CreateFeatureMonitorOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateFeatureMonitorOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata.verify|verify} messages. + * @param message CreateFeatureMonitorOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateFeatureMonitorOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFeatureMonitorOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata; + + /** + * Decodes a CreateFeatureMonitorOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFeatureMonitorOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata; + + /** + * Verifies a CreateFeatureMonitorOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateFeatureMonitorOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFeatureMonitorOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata; + + /** + * Creates a plain object from a CreateFeatureMonitorOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeatureMonitorOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateFeatureMonitorOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateFeatureMonitorOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateFeatureMonitorJobRequest. */ + interface ICreateFeatureMonitorJobRequest { + + /** CreateFeatureMonitorJobRequest parent */ + parent?: (string|null); + + /** CreateFeatureMonitorJobRequest featureMonitorJob */ + featureMonitorJob?: (google.cloud.aiplatform.v1beta1.IFeatureMonitorJob|null); + + /** CreateFeatureMonitorJobRequest featureMonitorJobId */ + featureMonitorJobId?: (number|Long|string|null); + } + + /** Represents a CreateFeatureMonitorJobRequest. */ + class CreateFeatureMonitorJobRequest implements ICreateFeatureMonitorJobRequest { + + /** + * Constructs a new CreateFeatureMonitorJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest); + + /** CreateFeatureMonitorJobRequest parent. */ + public parent: string; + + /** CreateFeatureMonitorJobRequest featureMonitorJob. */ + public featureMonitorJob?: (google.cloud.aiplatform.v1beta1.IFeatureMonitorJob|null); + + /** CreateFeatureMonitorJobRequest featureMonitorJobId. */ + public featureMonitorJobId: (number|Long|string); + + /** + * Creates a new CreateFeatureMonitorJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFeatureMonitorJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest; + + /** + * Encodes the specified CreateFeatureMonitorJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest.verify|verify} messages. + * @param message CreateFeatureMonitorJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateFeatureMonitorJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest.verify|verify} messages. + * @param message CreateFeatureMonitorJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateFeatureMonitorJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFeatureMonitorJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest; + + /** + * Decodes a CreateFeatureMonitorJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFeatureMonitorJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest; + + /** + * Verifies a CreateFeatureMonitorJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateFeatureMonitorJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFeatureMonitorJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest; + + /** + * Creates a plain object from a CreateFeatureMonitorJobRequest message. Also converts values to other types if specified. + * @param message CreateFeatureMonitorJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateFeatureMonitorJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateFeatureMonitorJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetFeatureMonitorJobRequest. */ + interface IGetFeatureMonitorJobRequest { + + /** GetFeatureMonitorJobRequest name */ + name?: (string|null); + } + + /** Represents a GetFeatureMonitorJobRequest. */ + class GetFeatureMonitorJobRequest implements IGetFeatureMonitorJobRequest { + + /** + * Constructs a new GetFeatureMonitorJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest); + + /** GetFeatureMonitorJobRequest name. */ + public name: string; + + /** + * Creates a new GetFeatureMonitorJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFeatureMonitorJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest): google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest; + + /** + * Encodes the specified GetFeatureMonitorJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest.verify|verify} messages. + * @param message GetFeatureMonitorJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetFeatureMonitorJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest.verify|verify} messages. + * @param message GetFeatureMonitorJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetFeatureMonitorJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFeatureMonitorJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest; + + /** + * Decodes a GetFeatureMonitorJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetFeatureMonitorJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest; + + /** + * Verifies a GetFeatureMonitorJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetFeatureMonitorJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFeatureMonitorJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest; + + /** + * Creates a plain object from a GetFeatureMonitorJobRequest message. Also converts values to other types if specified. + * @param message GetFeatureMonitorJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetFeatureMonitorJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetFeatureMonitorJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListFeatureMonitorJobsRequest. */ + interface IListFeatureMonitorJobsRequest { + + /** ListFeatureMonitorJobsRequest parent */ + parent?: (string|null); + + /** ListFeatureMonitorJobsRequest filter */ + filter?: (string|null); + + /** ListFeatureMonitorJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListFeatureMonitorJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListFeatureMonitorJobsRequest orderBy */ + orderBy?: (string|null); + } + + /** Represents a ListFeatureMonitorJobsRequest. */ + class ListFeatureMonitorJobsRequest implements IListFeatureMonitorJobsRequest { + + /** + * Constructs a new ListFeatureMonitorJobsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest); + + /** ListFeatureMonitorJobsRequest parent. */ + public parent: string; + + /** ListFeatureMonitorJobsRequest filter. */ + public filter: string; + + /** ListFeatureMonitorJobsRequest pageSize. */ + public pageSize: number; + + /** ListFeatureMonitorJobsRequest pageToken. */ + public pageToken: string; + + /** ListFeatureMonitorJobsRequest orderBy. */ + public orderBy: string; + + /** + * Creates a new ListFeatureMonitorJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFeatureMonitorJobsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest): google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest; + + /** + * Encodes the specified ListFeatureMonitorJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest.verify|verify} messages. + * @param message ListFeatureMonitorJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListFeatureMonitorJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest.verify|verify} messages. + * @param message ListFeatureMonitorJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListFeatureMonitorJobsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFeatureMonitorJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest; + + /** + * Decodes a ListFeatureMonitorJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFeatureMonitorJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest; + + /** + * Verifies a ListFeatureMonitorJobsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListFeatureMonitorJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFeatureMonitorJobsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest; + + /** + * Creates a plain object from a ListFeatureMonitorJobsRequest message. Also converts values to other types if specified. + * @param message ListFeatureMonitorJobsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListFeatureMonitorJobsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListFeatureMonitorJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListFeatureMonitorJobsResponse. */ + interface IListFeatureMonitorJobsResponse { + + /** ListFeatureMonitorJobsResponse featureMonitorJobs */ + featureMonitorJobs?: (google.cloud.aiplatform.v1beta1.IFeatureMonitorJob[]|null); + + /** ListFeatureMonitorJobsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListFeatureMonitorJobsResponse. */ + class ListFeatureMonitorJobsResponse implements IListFeatureMonitorJobsResponse { + + /** + * Constructs a new ListFeatureMonitorJobsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse); + + /** ListFeatureMonitorJobsResponse featureMonitorJobs. */ + public featureMonitorJobs: google.cloud.aiplatform.v1beta1.IFeatureMonitorJob[]; + + /** ListFeatureMonitorJobsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListFeatureMonitorJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFeatureMonitorJobsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse): google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse; + + /** + * Encodes the specified ListFeatureMonitorJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse.verify|verify} messages. + * @param message ListFeatureMonitorJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListFeatureMonitorJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse.verify|verify} messages. + * @param message ListFeatureMonitorJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListFeatureMonitorJobsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFeatureMonitorJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse; + + /** + * Decodes a ListFeatureMonitorJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFeatureMonitorJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse; + + /** + * Verifies a ListFeatureMonitorJobsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListFeatureMonitorJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFeatureMonitorJobsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse; + + /** + * Creates a plain object from a ListFeatureMonitorJobsResponse message. Also converts values to other types if specified. + * @param message ListFeatureMonitorJobsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListFeatureMonitorJobsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListFeatureMonitorJobsResponse + * @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 { @@ -180168,6 +183402,9 @@ export namespace google { /** GetFeatureRequest name */ name?: (string|null); + + /** GetFeatureRequest featureStatsAndAnomalySpec */ + featureStatsAndAnomalySpec?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec|null); } /** Represents a GetFeatureRequest. */ @@ -180182,6 +183419,9 @@ export namespace google { /** GetFeatureRequest name. */ public name: string; + /** GetFeatureRequest featureStatsAndAnomalySpec. */ + public featureStatsAndAnomalySpec?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec|null); + /** * Creates a new GetFeatureRequest instance using the specified properties. * @param [properties] Properties to set @@ -184615,6 +187855,9 @@ export namespace google { /** TuningJob encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** TuningJob serviceAccount */ + serviceAccount?: (string|null); } /** Represents a TuningJob. */ @@ -184683,6 +187926,9 @@ export namespace google { /** TuningJob encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** TuningJob serviceAccount. */ + public serviceAccount: string; + /** TuningJob sourceModel. */ public sourceModel?: "baseModel"; @@ -225720,6 +228966,20 @@ export namespace google { */ public startNotebookRuntime(request: google.cloud.aiplatform.v1beta1.IStartNotebookRuntimeRequest): Promise; + /** + * Calls StopNotebookRuntime. + * @param request StopNotebookRuntimeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public stopNotebookRuntime(request: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest, callback: google.cloud.aiplatform.v1beta1.NotebookService.StopNotebookRuntimeCallback): void; + + /** + * Calls StopNotebookRuntime. + * @param request StopNotebookRuntimeRequest message or plain object + * @returns Promise + */ + public stopNotebookRuntime(request: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest): Promise; + /** * Calls CreateNotebookExecutionJob. * @param request CreateNotebookExecutionJobRequest message or plain object @@ -225856,6 +229116,13 @@ export namespace google { */ type StartNotebookRuntimeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.NotebookService|stopNotebookRuntime}. + * @param error Error, if any + * @param [response] Operation + */ + type StopNotebookRuntimeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.NotebookService|createNotebookExecutionJob}. * @param error Error, if any @@ -227849,6 +231116,291 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a StopNotebookRuntimeRequest. */ + interface IStopNotebookRuntimeRequest { + + /** StopNotebookRuntimeRequest name */ + name?: (string|null); + } + + /** Represents a StopNotebookRuntimeRequest. */ + class StopNotebookRuntimeRequest implements IStopNotebookRuntimeRequest { + + /** + * Constructs a new StopNotebookRuntimeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest); + + /** StopNotebookRuntimeRequest name. */ + public name: string; + + /** + * Creates a new StopNotebookRuntimeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StopNotebookRuntimeRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest; + + /** + * Encodes the specified StopNotebookRuntimeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest.verify|verify} messages. + * @param message StopNotebookRuntimeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopNotebookRuntimeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest.verify|verify} messages. + * @param message StopNotebookRuntimeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopNotebookRuntimeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopNotebookRuntimeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest; + + /** + * Decodes a StopNotebookRuntimeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopNotebookRuntimeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest; + + /** + * Verifies a StopNotebookRuntimeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopNotebookRuntimeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopNotebookRuntimeRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest; + + /** + * Creates a plain object from a StopNotebookRuntimeRequest message. Also converts values to other types if specified. + * @param message StopNotebookRuntimeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopNotebookRuntimeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopNotebookRuntimeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StopNotebookRuntimeOperationMetadata. */ + interface IStopNotebookRuntimeOperationMetadata { + + /** StopNotebookRuntimeOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } + + /** Represents a StopNotebookRuntimeOperationMetadata. */ + class StopNotebookRuntimeOperationMetadata implements IStopNotebookRuntimeOperationMetadata { + + /** + * Constructs a new StopNotebookRuntimeOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata); + + /** StopNotebookRuntimeOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** + * Creates a new StopNotebookRuntimeOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns StopNotebookRuntimeOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata; + + /** + * Encodes the specified StopNotebookRuntimeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata.verify|verify} messages. + * @param message StopNotebookRuntimeOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopNotebookRuntimeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata.verify|verify} messages. + * @param message StopNotebookRuntimeOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopNotebookRuntimeOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopNotebookRuntimeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata; + + /** + * Decodes a StopNotebookRuntimeOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopNotebookRuntimeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata; + + /** + * Verifies a StopNotebookRuntimeOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopNotebookRuntimeOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopNotebookRuntimeOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata; + + /** + * Creates a plain object from a StopNotebookRuntimeOperationMetadata message. Also converts values to other types if specified. + * @param message StopNotebookRuntimeOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopNotebookRuntimeOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopNotebookRuntimeOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StopNotebookRuntimeResponse. */ + interface IStopNotebookRuntimeResponse { + } + + /** Represents a StopNotebookRuntimeResponse. */ + class StopNotebookRuntimeResponse implements IStopNotebookRuntimeResponse { + + /** + * Constructs a new StopNotebookRuntimeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse); + + /** + * Creates a new StopNotebookRuntimeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StopNotebookRuntimeResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse; + + /** + * Encodes the specified StopNotebookRuntimeResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse.verify|verify} messages. + * @param message StopNotebookRuntimeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopNotebookRuntimeResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse.verify|verify} messages. + * @param message StopNotebookRuntimeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopNotebookRuntimeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopNotebookRuntimeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse; + + /** + * Decodes a StopNotebookRuntimeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopNotebookRuntimeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse; + + /** + * Verifies a StopNotebookRuntimeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopNotebookRuntimeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopNotebookRuntimeResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse; + + /** + * Creates a plain object from a StopNotebookRuntimeResponse message. Also converts values to other types if specified. + * @param message StopNotebookRuntimeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopNotebookRuntimeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopNotebookRuntimeResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CreateNotebookExecutionJobRequest. */ interface ICreateNotebookExecutionJobRequest { diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 021ed795594..290bd358354 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -31674,6 +31674,7 @@ * @property {string|null} [name] FunctionDeclaration name * @property {string|null} [description] FunctionDeclaration description * @property {google.cloud.aiplatform.v1.ISchema|null} [parameters] FunctionDeclaration parameters + * @property {google.cloud.aiplatform.v1.ISchema|null} [response] FunctionDeclaration response */ /** @@ -31715,6 +31716,14 @@ */ FunctionDeclaration.prototype.parameters = null; + /** + * FunctionDeclaration response. + * @member {google.cloud.aiplatform.v1.ISchema|null|undefined} response + * @memberof google.cloud.aiplatform.v1.FunctionDeclaration + * @instance + */ + FunctionDeclaration.prototype.response = null; + /** * Creates a new FunctionDeclaration instance using the specified properties. * @function create @@ -31745,6 +31754,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) $root.google.cloud.aiplatform.v1.Schema.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.response != null && Object.hasOwnProperty.call(message, "response")) + $root.google.cloud.aiplatform.v1.Schema.encode(message.response, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -31791,6 +31802,10 @@ message.parameters = $root.google.cloud.aiplatform.v1.Schema.decode(reader, reader.uint32()); break; } + case 4: { + message.response = $root.google.cloud.aiplatform.v1.Schema.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -31837,6 +31852,11 @@ if (error) return "parameters." + error; } + if (message.response != null && message.hasOwnProperty("response")) { + var error = $root.google.cloud.aiplatform.v1.Schema.verify(message.response); + if (error) + return "response." + error; + } return null; }; @@ -31861,6 +31881,11 @@ throw TypeError(".google.cloud.aiplatform.v1.FunctionDeclaration.parameters: object expected"); message.parameters = $root.google.cloud.aiplatform.v1.Schema.fromObject(object.parameters); } + if (object.response != null) { + if (typeof object.response !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FunctionDeclaration.response: object expected"); + message.response = $root.google.cloud.aiplatform.v1.Schema.fromObject(object.response); + } return message; }; @@ -31881,6 +31906,7 @@ object.name = ""; object.description = ""; object.parameters = null; + object.response = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -31888,6 +31914,8 @@ object.description = message.description; if (message.parameters != null && message.hasOwnProperty("parameters")) object.parameters = $root.google.cloud.aiplatform.v1.Schema.toObject(message.parameters, options); + if (message.response != null && message.hasOwnProperty("response")) + object.response = $root.google.cloud.aiplatform.v1.Schema.toObject(message.response, options); return object; }; @@ -55613,6 +55641,7 @@ * @property {boolean|null} [disableContainerLogging] DeployedModel disableContainerLogging * @property {boolean|null} [enableAccessLogging] DeployedModel enableAccessLogging * @property {google.cloud.aiplatform.v1.IPrivateEndpoints|null} [privateEndpoints] DeployedModel privateEndpoints + * @property {Object.|null} [systemLabels] DeployedModel systemLabels */ /** @@ -55624,6 +55653,7 @@ * @param {google.cloud.aiplatform.v1.IDeployedModel=} [properties] Properties to set */ function DeployedModel(properties) { + this.systemLabels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55742,6 +55772,14 @@ */ DeployedModel.prototype.privateEndpoints = null; + /** + * DeployedModel systemLabels. + * @member {Object.} systemLabels + * @memberof google.cloud.aiplatform.v1.DeployedModel + * @instance + */ + DeployedModel.prototype.systemLabels = $util.emptyObject; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -55808,6 +55846,9 @@ 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); + if (message.systemLabels != null && Object.hasOwnProperty.call(message, "systemLabels")) + for (var keys = Object.keys(message.systemLabels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 28, wireType 2 =*/226).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.systemLabels[keys[i]]).ldelim(); return writer; }; @@ -55838,7 +55879,7 @@ DeployedModel.decode = function decode(reader, 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.DeployedModel(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeployedModel(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55898,6 +55939,29 @@ message.privateEndpoints = $root.google.cloud.aiplatform.v1.PrivateEndpoints.decode(reader, reader.uint32()); break; } + case 28: { + if (message.systemLabels === $util.emptyObject) + message.systemLabels = {}; + 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.systemLabels[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -55998,6 +56062,14 @@ if (error) return "privateEndpoints." + error; } + if (message.systemLabels != null && message.hasOwnProperty("systemLabels")) { + if (!$util.isObject(message.systemLabels)) + return "systemLabels: object expected"; + var key = Object.keys(message.systemLabels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.systemLabels[key[i]])) + return "systemLabels: string{k:string} expected"; + } return null; }; @@ -56056,6 +56128,13 @@ throw TypeError(".google.cloud.aiplatform.v1.DeployedModel.privateEndpoints: object expected"); message.privateEndpoints = $root.google.cloud.aiplatform.v1.PrivateEndpoints.fromObject(object.privateEndpoints); } + if (object.systemLabels) { + if (typeof object.systemLabels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.DeployedModel.systemLabels: object expected"); + message.systemLabels = {}; + for (var keys = Object.keys(object.systemLabels), i = 0; i < keys.length; ++i) + message.systemLabels[keys[i]] = String(object.systemLabels[keys[i]]); + } return message; }; @@ -56072,6 +56151,8 @@ if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.systemLabels = {}; if (options.defaults) { object.id = ""; object.model = ""; @@ -56122,6 +56203,12 @@ object.modelVersionId = message.modelVersionId; if (message.disableExplanations != null && message.hasOwnProperty("disableExplanations")) object.disableExplanations = message.disableExplanations; + var keys2; + if (message.systemLabels && (keys2 = Object.keys(message.systemLabels)).length) { + object.systemLabels = {}; + for (var j = 0; j < keys2.length; ++j) + object.systemLabels[keys2[j]] = message.systemLabels[keys2[j]]; + } return object; }; @@ -64398,6 +64485,8 @@ * @property {google.cloud.aiplatform.v1.IToolNameMatchInput|null} [toolNameMatchInput] EvaluateInstancesRequest toolNameMatchInput * @property {google.cloud.aiplatform.v1.IToolParameterKeyMatchInput|null} [toolParameterKeyMatchInput] EvaluateInstancesRequest toolParameterKeyMatchInput * @property {google.cloud.aiplatform.v1.IToolParameterKVMatchInput|null} [toolParameterKvMatchInput] EvaluateInstancesRequest toolParameterKvMatchInput + * @property {google.cloud.aiplatform.v1.ICometInput|null} [cometInput] EvaluateInstancesRequest cometInput + * @property {google.cloud.aiplatform.v1.IMetricxInput|null} [metricxInput] EvaluateInstancesRequest metricxInput * @property {string|null} [location] EvaluateInstancesRequest location */ @@ -64600,6 +64689,22 @@ */ EvaluateInstancesRequest.prototype.toolParameterKvMatchInput = null; + /** + * EvaluateInstancesRequest cometInput. + * @member {google.cloud.aiplatform.v1.ICometInput|null|undefined} cometInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.cometInput = null; + + /** + * EvaluateInstancesRequest metricxInput. + * @member {google.cloud.aiplatform.v1.IMetricxInput|null|undefined} metricxInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.metricxInput = null; + /** * EvaluateInstancesRequest location. * @member {string} location @@ -64613,12 +64718,12 @@ /** * EvaluateInstancesRequest metricInputs. - * @member {"exactMatchInput"|"bleuInput"|"rougeInput"|"fluencyInput"|"coherenceInput"|"safetyInput"|"groundednessInput"|"fulfillmentInput"|"summarizationQualityInput"|"pairwiseSummarizationQualityInput"|"summarizationHelpfulnessInput"|"summarizationVerbosityInput"|"questionAnsweringQualityInput"|"pairwiseQuestionAnsweringQualityInput"|"questionAnsweringRelevanceInput"|"questionAnsweringHelpfulnessInput"|"questionAnsweringCorrectnessInput"|"pointwiseMetricInput"|"pairwiseMetricInput"|"toolCallValidInput"|"toolNameMatchInput"|"toolParameterKeyMatchInput"|"toolParameterKvMatchInput"|undefined} metricInputs + * @member {"exactMatchInput"|"bleuInput"|"rougeInput"|"fluencyInput"|"coherenceInput"|"safetyInput"|"groundednessInput"|"fulfillmentInput"|"summarizationQualityInput"|"pairwiseSummarizationQualityInput"|"summarizationHelpfulnessInput"|"summarizationVerbosityInput"|"questionAnsweringQualityInput"|"pairwiseQuestionAnsweringQualityInput"|"questionAnsweringRelevanceInput"|"questionAnsweringHelpfulnessInput"|"questionAnsweringCorrectnessInput"|"pointwiseMetricInput"|"pairwiseMetricInput"|"toolCallValidInput"|"toolNameMatchInput"|"toolParameterKeyMatchInput"|"toolParameterKvMatchInput"|"cometInput"|"metricxInput"|undefined} metricInputs * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @instance */ Object.defineProperty(EvaluateInstancesRequest.prototype, "metricInputs", { - get: $util.oneOfGetter($oneOfFields = ["exactMatchInput", "bleuInput", "rougeInput", "fluencyInput", "coherenceInput", "safetyInput", "groundednessInput", "fulfillmentInput", "summarizationQualityInput", "pairwiseSummarizationQualityInput", "summarizationHelpfulnessInput", "summarizationVerbosityInput", "questionAnsweringQualityInput", "pairwiseQuestionAnsweringQualityInput", "questionAnsweringRelevanceInput", "questionAnsweringHelpfulnessInput", "questionAnsweringCorrectnessInput", "pointwiseMetricInput", "pairwiseMetricInput", "toolCallValidInput", "toolNameMatchInput", "toolParameterKeyMatchInput", "toolParameterKvMatchInput"]), + get: $util.oneOfGetter($oneOfFields = ["exactMatchInput", "bleuInput", "rougeInput", "fluencyInput", "coherenceInput", "safetyInput", "groundednessInput", "fulfillmentInput", "summarizationQualityInput", "pairwiseSummarizationQualityInput", "summarizationHelpfulnessInput", "summarizationVerbosityInput", "questionAnsweringQualityInput", "pairwiseQuestionAnsweringQualityInput", "questionAnsweringRelevanceInput", "questionAnsweringHelpfulnessInput", "questionAnsweringCorrectnessInput", "pointwiseMetricInput", "pairwiseMetricInput", "toolCallValidInput", "toolNameMatchInput", "toolParameterKeyMatchInput", "toolParameterKvMatchInput", "cometInput", "metricxInput"]), set: $util.oneOfSetter($oneOfFields) }); @@ -64694,6 +64799,10 @@ $root.google.cloud.aiplatform.v1.PointwiseMetricInput.encode(message.pointwiseMetricInput, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); if (message.pairwiseMetricInput != null && Object.hasOwnProperty.call(message, "pairwiseMetricInput")) $root.google.cloud.aiplatform.v1.PairwiseMetricInput.encode(message.pairwiseMetricInput, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); + if (message.cometInput != null && Object.hasOwnProperty.call(message, "cometInput")) + $root.google.cloud.aiplatform.v1.CometInput.encode(message.cometInput, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); + if (message.metricxInput != null && Object.hasOwnProperty.call(message, "metricxInput")) + $root.google.cloud.aiplatform.v1.MetricxInput.encode(message.metricxInput, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); return writer; }; @@ -64820,6 +64929,14 @@ message.toolParameterKvMatchInput = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInput.decode(reader, reader.uint32()); break; } + case 31: { + message.cometInput = $root.google.cloud.aiplatform.v1.CometInput.decode(reader, reader.uint32()); + break; + } + case 32: { + message.metricxInput = $root.google.cloud.aiplatform.v1.MetricxInput.decode(reader, reader.uint32()); + break; + } case 1: { message.location = reader.string(); break; @@ -65088,6 +65205,26 @@ return "toolParameterKvMatchInput." + error; } } + if (message.cometInput != null && message.hasOwnProperty("cometInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.CometInput.verify(message.cometInput); + if (error) + return "cometInput." + error; + } + } + if (message.metricxInput != null && message.hasOwnProperty("metricxInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.MetricxInput.verify(message.metricxInput); + if (error) + return "metricxInput." + error; + } + } if (message.location != null && message.hasOwnProperty("location")) if (!$util.isString(message.location)) return "location: string expected"; @@ -65221,6 +65358,16 @@ throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.toolParameterKvMatchInput: object expected"); message.toolParameterKvMatchInput = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInput.fromObject(object.toolParameterKvMatchInput); } + if (object.cometInput != null) { + if (typeof object.cometInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.cometInput: object expected"); + message.cometInput = $root.google.cloud.aiplatform.v1.CometInput.fromObject(object.cometInput); + } + if (object.metricxInput != null) { + if (typeof object.metricxInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.metricxInput: object expected"); + message.metricxInput = $root.google.cloud.aiplatform.v1.MetricxInput.fromObject(object.metricxInput); + } if (object.location != null) message.location = String(object.location); return message; @@ -65358,6 +65505,16 @@ if (options.oneofs) object.metricInputs = "pairwiseMetricInput"; } + if (message.cometInput != null && message.hasOwnProperty("cometInput")) { + object.cometInput = $root.google.cloud.aiplatform.v1.CometInput.toObject(message.cometInput, options); + if (options.oneofs) + object.metricInputs = "cometInput"; + } + if (message.metricxInput != null && message.hasOwnProperty("metricxInput")) { + object.metricxInput = $root.google.cloud.aiplatform.v1.MetricxInput.toObject(message.metricxInput, options); + if (options.oneofs) + object.metricInputs = "metricxInput"; + } return object; }; @@ -65419,6 +65576,8 @@ * @property {google.cloud.aiplatform.v1.IToolNameMatchResults|null} [toolNameMatchResults] EvaluateInstancesResponse toolNameMatchResults * @property {google.cloud.aiplatform.v1.IToolParameterKeyMatchResults|null} [toolParameterKeyMatchResults] EvaluateInstancesResponse toolParameterKeyMatchResults * @property {google.cloud.aiplatform.v1.IToolParameterKVMatchResults|null} [toolParameterKvMatchResults] EvaluateInstancesResponse toolParameterKvMatchResults + * @property {google.cloud.aiplatform.v1.ICometResult|null} [cometResult] EvaluateInstancesResponse cometResult + * @property {google.cloud.aiplatform.v1.IMetricxResult|null} [metricxResult] EvaluateInstancesResponse metricxResult */ /** @@ -65620,17 +65779,33 @@ */ EvaluateInstancesResponse.prototype.toolParameterKvMatchResults = null; + /** + * EvaluateInstancesResponse cometResult. + * @member {google.cloud.aiplatform.v1.ICometResult|null|undefined} cometResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.cometResult = null; + + /** + * EvaluateInstancesResponse metricxResult. + * @member {google.cloud.aiplatform.v1.IMetricxResult|null|undefined} metricxResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.metricxResult = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * EvaluateInstancesResponse evaluationResults. - * @member {"exactMatchResults"|"bleuResults"|"rougeResults"|"fluencyResult"|"coherenceResult"|"safetyResult"|"groundednessResult"|"fulfillmentResult"|"summarizationQualityResult"|"pairwiseSummarizationQualityResult"|"summarizationHelpfulnessResult"|"summarizationVerbosityResult"|"questionAnsweringQualityResult"|"pairwiseQuestionAnsweringQualityResult"|"questionAnsweringRelevanceResult"|"questionAnsweringHelpfulnessResult"|"questionAnsweringCorrectnessResult"|"pointwiseMetricResult"|"pairwiseMetricResult"|"toolCallValidResults"|"toolNameMatchResults"|"toolParameterKeyMatchResults"|"toolParameterKvMatchResults"|undefined} evaluationResults + * @member {"exactMatchResults"|"bleuResults"|"rougeResults"|"fluencyResult"|"coherenceResult"|"safetyResult"|"groundednessResult"|"fulfillmentResult"|"summarizationQualityResult"|"pairwiseSummarizationQualityResult"|"summarizationHelpfulnessResult"|"summarizationVerbosityResult"|"questionAnsweringQualityResult"|"pairwiseQuestionAnsweringQualityResult"|"questionAnsweringRelevanceResult"|"questionAnsweringHelpfulnessResult"|"questionAnsweringCorrectnessResult"|"pointwiseMetricResult"|"pairwiseMetricResult"|"toolCallValidResults"|"toolNameMatchResults"|"toolParameterKeyMatchResults"|"toolParameterKvMatchResults"|"cometResult"|"metricxResult"|undefined} evaluationResults * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ Object.defineProperty(EvaluateInstancesResponse.prototype, "evaluationResults", { - get: $util.oneOfGetter($oneOfFields = ["exactMatchResults", "bleuResults", "rougeResults", "fluencyResult", "coherenceResult", "safetyResult", "groundednessResult", "fulfillmentResult", "summarizationQualityResult", "pairwiseSummarizationQualityResult", "summarizationHelpfulnessResult", "summarizationVerbosityResult", "questionAnsweringQualityResult", "pairwiseQuestionAnsweringQualityResult", "questionAnsweringRelevanceResult", "questionAnsweringHelpfulnessResult", "questionAnsweringCorrectnessResult", "pointwiseMetricResult", "pairwiseMetricResult", "toolCallValidResults", "toolNameMatchResults", "toolParameterKeyMatchResults", "toolParameterKvMatchResults"]), + get: $util.oneOfGetter($oneOfFields = ["exactMatchResults", "bleuResults", "rougeResults", "fluencyResult", "coherenceResult", "safetyResult", "groundednessResult", "fulfillmentResult", "summarizationQualityResult", "pairwiseSummarizationQualityResult", "summarizationHelpfulnessResult", "summarizationVerbosityResult", "questionAnsweringQualityResult", "pairwiseQuestionAnsweringQualityResult", "questionAnsweringRelevanceResult", "questionAnsweringHelpfulnessResult", "questionAnsweringCorrectnessResult", "pointwiseMetricResult", "pairwiseMetricResult", "toolCallValidResults", "toolNameMatchResults", "toolParameterKeyMatchResults", "toolParameterKvMatchResults", "cometResult", "metricxResult"]), set: $util.oneOfSetter($oneOfFields) }); @@ -65704,6 +65879,10 @@ $root.google.cloud.aiplatform.v1.PointwiseMetricResult.encode(message.pointwiseMetricResult, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); if (message.pairwiseMetricResult != null && Object.hasOwnProperty.call(message, "pairwiseMetricResult")) $root.google.cloud.aiplatform.v1.PairwiseMetricResult.encode(message.pairwiseMetricResult, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + if (message.cometResult != null && Object.hasOwnProperty.call(message, "cometResult")) + $root.google.cloud.aiplatform.v1.CometResult.encode(message.cometResult, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); + if (message.metricxResult != null && Object.hasOwnProperty.call(message, "metricxResult")) + $root.google.cloud.aiplatform.v1.MetricxResult.encode(message.metricxResult, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); return writer; }; @@ -65830,6 +66009,14 @@ message.toolParameterKvMatchResults = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchResults.decode(reader, reader.uint32()); break; } + case 29: { + message.cometResult = $root.google.cloud.aiplatform.v1.CometResult.decode(reader, reader.uint32()); + break; + } + case 30: { + message.metricxResult = $root.google.cloud.aiplatform.v1.MetricxResult.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -66094,6 +66281,26 @@ return "toolParameterKvMatchResults." + error; } } + if (message.cometResult != null && message.hasOwnProperty("cometResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.CometResult.verify(message.cometResult); + if (error) + return "cometResult." + error; + } + } + if (message.metricxResult != null && message.hasOwnProperty("metricxResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.MetricxResult.verify(message.metricxResult); + if (error) + return "metricxResult." + error; + } + } return null; }; @@ -66224,6 +66431,16 @@ throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.toolParameterKvMatchResults: object expected"); message.toolParameterKvMatchResults = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchResults.fromObject(object.toolParameterKvMatchResults); } + if (object.cometResult != null) { + if (typeof object.cometResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.cometResult: object expected"); + message.cometResult = $root.google.cloud.aiplatform.v1.CometResult.fromObject(object.cometResult); + } + if (object.metricxResult != null) { + if (typeof object.metricxResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.metricxResult: object expected"); + message.metricxResult = $root.google.cloud.aiplatform.v1.MetricxResult.fromObject(object.metricxResult); + } return message; }; @@ -66355,6 +66572,16 @@ if (options.oneofs) object.evaluationResults = "pairwiseMetricResult"; } + if (message.cometResult != null && message.hasOwnProperty("cometResult")) { + object.cometResult = $root.google.cloud.aiplatform.v1.CometResult.toObject(message.cometResult, options); + if (options.oneofs) + object.evaluationResults = "cometResult"; + } + if (message.metricxResult != null && message.hasOwnProperty("metricxResult")) { + object.metricxResult = $root.google.cloud.aiplatform.v1.MetricxResult.toObject(message.metricxResult, options); + if (options.oneofs) + object.evaluationResults = "metricxResult"; + } return object; }; @@ -90941,6 +91168,2134 @@ return ToolParameterKVMatchMetricValue; })(); + v1.CometInput = (function() { + + /** + * Properties of a CometInput. + * @memberof google.cloud.aiplatform.v1 + * @interface ICometInput + * @property {google.cloud.aiplatform.v1.ICometSpec|null} [metricSpec] CometInput metricSpec + * @property {google.cloud.aiplatform.v1.ICometInstance|null} [instance] CometInput instance + */ + + /** + * Constructs a new CometInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CometInput. + * @implements ICometInput + * @constructor + * @param {google.cloud.aiplatform.v1.ICometInput=} [properties] Properties to set + */ + function CometInput(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]]; + } + + /** + * CometInput metricSpec. + * @member {google.cloud.aiplatform.v1.ICometSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.CometInput + * @instance + */ + CometInput.prototype.metricSpec = null; + + /** + * CometInput instance. + * @member {google.cloud.aiplatform.v1.ICometInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.CometInput + * @instance + */ + CometInput.prototype.instance = null; + + /** + * Creates a new CometInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CometInput + * @static + * @param {google.cloud.aiplatform.v1.ICometInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CometInput} CometInput instance + */ + CometInput.create = function create(properties) { + return new CometInput(properties); + }; + + /** + * Encodes the specified CometInput message. Does not implicitly {@link google.cloud.aiplatform.v1.CometInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CometInput + * @static + * @param {google.cloud.aiplatform.v1.ICometInput} message CometInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CometInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.CometSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.CometInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CometInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CometInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CometInput + * @static + * @param {google.cloud.aiplatform.v1.ICometInput} message CometInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CometInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CometInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CometInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CometInput} CometInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CometInput.decode = function decode(reader, 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.CometInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.CometSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.CometInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CometInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CometInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CometInput} CometInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CometInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CometInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CometInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CometInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.CometSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.CometInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a CometInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CometInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CometInput} CometInput + */ + CometInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CometInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.CometInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CometInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.CometSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CometInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.CometInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a CometInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CometInput + * @static + * @param {google.cloud.aiplatform.v1.CometInput} message CometInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CometInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.CometSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.CometInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this CometInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CometInput + * @instance + * @returns {Object.} JSON object + */ + CometInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CometInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CometInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CometInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CometInput"; + }; + + return CometInput; + })(); + + v1.CometSpec = (function() { + + /** + * Properties of a CometSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface ICometSpec + * @property {google.cloud.aiplatform.v1.CometSpec.CometVersion|null} [version] CometSpec version + * @property {string|null} [sourceLanguage] CometSpec sourceLanguage + * @property {string|null} [targetLanguage] CometSpec targetLanguage + */ + + /** + * Constructs a new CometSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CometSpec. + * @implements ICometSpec + * @constructor + * @param {google.cloud.aiplatform.v1.ICometSpec=} [properties] Properties to set + */ + function CometSpec(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]]; + } + + /** + * CometSpec version. + * @member {google.cloud.aiplatform.v1.CometSpec.CometVersion|null|undefined} version + * @memberof google.cloud.aiplatform.v1.CometSpec + * @instance + */ + CometSpec.prototype.version = null; + + /** + * CometSpec sourceLanguage. + * @member {string} sourceLanguage + * @memberof google.cloud.aiplatform.v1.CometSpec + * @instance + */ + CometSpec.prototype.sourceLanguage = ""; + + /** + * CometSpec targetLanguage. + * @member {string} targetLanguage + * @memberof google.cloud.aiplatform.v1.CometSpec + * @instance + */ + CometSpec.prototype.targetLanguage = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CometSpec _version. + * @member {"version"|undefined} _version + * @memberof google.cloud.aiplatform.v1.CometSpec + * @instance + */ + Object.defineProperty(CometSpec.prototype, "_version", { + get: $util.oneOfGetter($oneOfFields = ["version"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CometSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CometSpec + * @static + * @param {google.cloud.aiplatform.v1.ICometSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CometSpec} CometSpec instance + */ + CometSpec.create = function create(properties) { + return new CometSpec(properties); + }; + + /** + * Encodes the specified CometSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.CometSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CometSpec + * @static + * @param {google.cloud.aiplatform.v1.ICometSpec} message CometSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CometSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + if (message.sourceLanguage != null && Object.hasOwnProperty.call(message, "sourceLanguage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceLanguage); + if (message.targetLanguage != null && Object.hasOwnProperty.call(message, "targetLanguage")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.targetLanguage); + return writer; + }; + + /** + * Encodes the specified CometSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CometSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CometSpec + * @static + * @param {google.cloud.aiplatform.v1.ICometSpec} message CometSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CometSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CometSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CometSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CometSpec} CometSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CometSpec.decode = function decode(reader, 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.CometSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.int32(); + break; + } + case 2: { + message.sourceLanguage = reader.string(); + break; + } + case 3: { + message.targetLanguage = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CometSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CometSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CometSpec} CometSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CometSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CometSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CometSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CometSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.version != null && message.hasOwnProperty("version")) { + properties._version = 1; + switch (message.version) { + default: + return "version: enum value expected"; + case 0: + case 2: + break; + } + } + if (message.sourceLanguage != null && message.hasOwnProperty("sourceLanguage")) + if (!$util.isString(message.sourceLanguage)) + return "sourceLanguage: string expected"; + if (message.targetLanguage != null && message.hasOwnProperty("targetLanguage")) + if (!$util.isString(message.targetLanguage)) + return "targetLanguage: string expected"; + return null; + }; + + /** + * Creates a CometSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CometSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CometSpec} CometSpec + */ + CometSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CometSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.CometSpec(); + switch (object.version) { + default: + if (typeof object.version === "number") { + message.version = object.version; + break; + } + break; + case "COMET_VERSION_UNSPECIFIED": + case 0: + message.version = 0; + break; + case "COMET_22_SRC_REF": + case 2: + message.version = 2; + break; + } + if (object.sourceLanguage != null) + message.sourceLanguage = String(object.sourceLanguage); + if (object.targetLanguage != null) + message.targetLanguage = String(object.targetLanguage); + return message; + }; + + /** + * Creates a plain object from a CometSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CometSpec + * @static + * @param {google.cloud.aiplatform.v1.CometSpec} message CometSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CometSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.sourceLanguage = ""; + object.targetLanguage = ""; + } + if (message.version != null && message.hasOwnProperty("version")) { + object.version = options.enums === String ? $root.google.cloud.aiplatform.v1.CometSpec.CometVersion[message.version] === undefined ? message.version : $root.google.cloud.aiplatform.v1.CometSpec.CometVersion[message.version] : message.version; + if (options.oneofs) + object._version = "version"; + } + if (message.sourceLanguage != null && message.hasOwnProperty("sourceLanguage")) + object.sourceLanguage = message.sourceLanguage; + if (message.targetLanguage != null && message.hasOwnProperty("targetLanguage")) + object.targetLanguage = message.targetLanguage; + return object; + }; + + /** + * Converts this CometSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CometSpec + * @instance + * @returns {Object.} JSON object + */ + CometSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CometSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CometSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CometSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CometSpec"; + }; + + /** + * CometVersion enum. + * @name google.cloud.aiplatform.v1.CometSpec.CometVersion + * @enum {number} + * @property {number} COMET_VERSION_UNSPECIFIED=0 COMET_VERSION_UNSPECIFIED value + * @property {number} COMET_22_SRC_REF=2 COMET_22_SRC_REF value + */ + CometSpec.CometVersion = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COMET_VERSION_UNSPECIFIED"] = 0; + values[valuesById[2] = "COMET_22_SRC_REF"] = 2; + return values; + })(); + + return CometSpec; + })(); + + v1.CometInstance = (function() { + + /** + * Properties of a CometInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface ICometInstance + * @property {string|null} [prediction] CometInstance prediction + * @property {string|null} [reference] CometInstance reference + * @property {string|null} [source] CometInstance source + */ + + /** + * Constructs a new CometInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CometInstance. + * @implements ICometInstance + * @constructor + * @param {google.cloud.aiplatform.v1.ICometInstance=} [properties] Properties to set + */ + function CometInstance(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]]; + } + + /** + * CometInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.CometInstance + * @instance + */ + CometInstance.prototype.prediction = null; + + /** + * CometInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.CometInstance + * @instance + */ + CometInstance.prototype.reference = null; + + /** + * CometInstance source. + * @member {string|null|undefined} source + * @memberof google.cloud.aiplatform.v1.CometInstance + * @instance + */ + CometInstance.prototype.source = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CometInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.CometInstance + * @instance + */ + Object.defineProperty(CometInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * CometInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.CometInstance + * @instance + */ + Object.defineProperty(CometInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * CometInstance _source. + * @member {"source"|undefined} _source + * @memberof google.cloud.aiplatform.v1.CometInstance + * @instance + */ + Object.defineProperty(CometInstance.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CometInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CometInstance + * @static + * @param {google.cloud.aiplatform.v1.ICometInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CometInstance} CometInstance instance + */ + CometInstance.create = function create(properties) { + return new CometInstance(properties); + }; + + /** + * Encodes the specified CometInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.CometInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CometInstance + * @static + * @param {google.cloud.aiplatform.v1.ICometInstance} message CometInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CometInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.source); + return writer; + }; + + /** + * Encodes the specified CometInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CometInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CometInstance + * @static + * @param {google.cloud.aiplatform.v1.ICometInstance} message CometInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CometInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CometInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CometInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CometInstance} CometInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CometInstance.decode = function decode(reader, 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.CometInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + case 3: { + message.source = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CometInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CometInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CometInstance} CometInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CometInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CometInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CometInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CometInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.source != null && message.hasOwnProperty("source")) { + properties._source = 1; + if (!$util.isString(message.source)) + return "source: string expected"; + } + return null; + }; + + /** + * Creates a CometInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CometInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CometInstance} CometInstance + */ + CometInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CometInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.CometInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.source != null) + message.source = String(object.source); + return message; + }; + + /** + * Creates a plain object from a CometInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CometInstance + * @static + * @param {google.cloud.aiplatform.v1.CometInstance} message CometInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CometInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.source != null && message.hasOwnProperty("source")) { + object.source = message.source; + if (options.oneofs) + object._source = "source"; + } + return object; + }; + + /** + * Converts this CometInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CometInstance + * @instance + * @returns {Object.} JSON object + */ + CometInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CometInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CometInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CometInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CometInstance"; + }; + + return CometInstance; + })(); + + v1.CometResult = (function() { + + /** + * Properties of a CometResult. + * @memberof google.cloud.aiplatform.v1 + * @interface ICometResult + * @property {number|null} [score] CometResult score + */ + + /** + * Constructs a new CometResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CometResult. + * @implements ICometResult + * @constructor + * @param {google.cloud.aiplatform.v1.ICometResult=} [properties] Properties to set + */ + function CometResult(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]]; + } + + /** + * CometResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.CometResult + * @instance + */ + CometResult.prototype.score = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CometResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.CometResult + * @instance + */ + Object.defineProperty(CometResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CometResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CometResult + * @static + * @param {google.cloud.aiplatform.v1.ICometResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CometResult} CometResult instance + */ + CometResult.create = function create(properties) { + return new CometResult(properties); + }; + + /** + * Encodes the specified CometResult message. Does not implicitly {@link google.cloud.aiplatform.v1.CometResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CometResult + * @static + * @param {google.cloud.aiplatform.v1.ICometResult} message CometResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CometResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + return writer; + }; + + /** + * Encodes the specified CometResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CometResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CometResult + * @static + * @param {google.cloud.aiplatform.v1.ICometResult} message CometResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CometResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CometResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CometResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.CometResult} CometResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CometResult.decode = function decode(reader, 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.CometResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CometResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CometResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CometResult} CometResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CometResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CometResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CometResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CometResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + return null; + }; + + /** + * Creates a CometResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CometResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CometResult} CometResult + */ + CometResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CometResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.CometResult(); + if (object.score != null) + message.score = Number(object.score); + return message; + }; + + /** + * Creates a plain object from a CometResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CometResult + * @static + * @param {google.cloud.aiplatform.v1.CometResult} message CometResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CometResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + return object; + }; + + /** + * Converts this CometResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CometResult + * @instance + * @returns {Object.} JSON object + */ + CometResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CometResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CometResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CometResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CometResult"; + }; + + return CometResult; + })(); + + v1.MetricxInput = (function() { + + /** + * Properties of a MetricxInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IMetricxInput + * @property {google.cloud.aiplatform.v1.IMetricxSpec|null} [metricSpec] MetricxInput metricSpec + * @property {google.cloud.aiplatform.v1.IMetricxInstance|null} [instance] MetricxInput instance + */ + + /** + * Constructs a new MetricxInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a MetricxInput. + * @implements IMetricxInput + * @constructor + * @param {google.cloud.aiplatform.v1.IMetricxInput=} [properties] Properties to set + */ + function MetricxInput(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]]; + } + + /** + * MetricxInput metricSpec. + * @member {google.cloud.aiplatform.v1.IMetricxSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @instance + */ + MetricxInput.prototype.metricSpec = null; + + /** + * MetricxInput instance. + * @member {google.cloud.aiplatform.v1.IMetricxInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @instance + */ + MetricxInput.prototype.instance = null; + + /** + * Creates a new MetricxInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @static + * @param {google.cloud.aiplatform.v1.IMetricxInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MetricxInput} MetricxInput instance + */ + MetricxInput.create = function create(properties) { + return new MetricxInput(properties); + }; + + /** + * Encodes the specified MetricxInput message. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @static + * @param {google.cloud.aiplatform.v1.IMetricxInput} message MetricxInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricxInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.MetricxSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.MetricxInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MetricxInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @static + * @param {google.cloud.aiplatform.v1.IMetricxInput} message MetricxInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricxInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricxInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MetricxInput} MetricxInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricxInput.decode = function decode(reader, 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.MetricxInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.MetricxSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.MetricxInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricxInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MetricxInput} MetricxInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricxInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricxInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricxInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.MetricxSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.MetricxInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a MetricxInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MetricxInput} MetricxInput + */ + MetricxInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MetricxInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.MetricxInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetricxInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.MetricxSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetricxInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.MetricxInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a MetricxInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @static + * @param {google.cloud.aiplatform.v1.MetricxInput} message MetricxInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricxInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.MetricxSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.MetricxInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this MetricxInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @instance + * @returns {Object.} JSON object + */ + MetricxInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricxInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MetricxInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricxInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetricxInput"; + }; + + return MetricxInput; + })(); + + v1.MetricxSpec = (function() { + + /** + * Properties of a MetricxSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IMetricxSpec + * @property {google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion|null} [version] MetricxSpec version + * @property {string|null} [sourceLanguage] MetricxSpec sourceLanguage + * @property {string|null} [targetLanguage] MetricxSpec targetLanguage + */ + + /** + * Constructs a new MetricxSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a MetricxSpec. + * @implements IMetricxSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IMetricxSpec=} [properties] Properties to set + */ + function MetricxSpec(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]]; + } + + /** + * MetricxSpec version. + * @member {google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion|null|undefined} version + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @instance + */ + MetricxSpec.prototype.version = null; + + /** + * MetricxSpec sourceLanguage. + * @member {string} sourceLanguage + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @instance + */ + MetricxSpec.prototype.sourceLanguage = ""; + + /** + * MetricxSpec targetLanguage. + * @member {string} targetLanguage + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @instance + */ + MetricxSpec.prototype.targetLanguage = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MetricxSpec _version. + * @member {"version"|undefined} _version + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @instance + */ + Object.defineProperty(MetricxSpec.prototype, "_version", { + get: $util.oneOfGetter($oneOfFields = ["version"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MetricxSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @static + * @param {google.cloud.aiplatform.v1.IMetricxSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MetricxSpec} MetricxSpec instance + */ + MetricxSpec.create = function create(properties) { + return new MetricxSpec(properties); + }; + + /** + * Encodes the specified MetricxSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @static + * @param {google.cloud.aiplatform.v1.IMetricxSpec} message MetricxSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricxSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + if (message.sourceLanguage != null && Object.hasOwnProperty.call(message, "sourceLanguage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceLanguage); + if (message.targetLanguage != null && Object.hasOwnProperty.call(message, "targetLanguage")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.targetLanguage); + return writer; + }; + + /** + * Encodes the specified MetricxSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @static + * @param {google.cloud.aiplatform.v1.IMetricxSpec} message MetricxSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricxSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricxSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MetricxSpec} MetricxSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricxSpec.decode = function decode(reader, 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.MetricxSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.int32(); + break; + } + case 2: { + message.sourceLanguage = reader.string(); + break; + } + case 3: { + message.targetLanguage = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricxSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MetricxSpec} MetricxSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricxSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricxSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricxSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.version != null && message.hasOwnProperty("version")) { + properties._version = 1; + switch (message.version) { + default: + return "version: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.sourceLanguage != null && message.hasOwnProperty("sourceLanguage")) + if (!$util.isString(message.sourceLanguage)) + return "sourceLanguage: string expected"; + if (message.targetLanguage != null && message.hasOwnProperty("targetLanguage")) + if (!$util.isString(message.targetLanguage)) + return "targetLanguage: string expected"; + return null; + }; + + /** + * Creates a MetricxSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MetricxSpec} MetricxSpec + */ + MetricxSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MetricxSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.MetricxSpec(); + switch (object.version) { + default: + if (typeof object.version === "number") { + message.version = object.version; + break; + } + break; + case "METRICX_VERSION_UNSPECIFIED": + case 0: + message.version = 0; + break; + case "METRICX_24_REF": + case 1: + message.version = 1; + break; + case "METRICX_24_SRC": + case 2: + message.version = 2; + break; + case "METRICX_24_SRC_REF": + case 3: + message.version = 3; + break; + } + if (object.sourceLanguage != null) + message.sourceLanguage = String(object.sourceLanguage); + if (object.targetLanguage != null) + message.targetLanguage = String(object.targetLanguage); + return message; + }; + + /** + * Creates a plain object from a MetricxSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @static + * @param {google.cloud.aiplatform.v1.MetricxSpec} message MetricxSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricxSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.sourceLanguage = ""; + object.targetLanguage = ""; + } + if (message.version != null && message.hasOwnProperty("version")) { + object.version = options.enums === String ? $root.google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion[message.version] === undefined ? message.version : $root.google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion[message.version] : message.version; + if (options.oneofs) + object._version = "version"; + } + if (message.sourceLanguage != null && message.hasOwnProperty("sourceLanguage")) + object.sourceLanguage = message.sourceLanguage; + if (message.targetLanguage != null && message.hasOwnProperty("targetLanguage")) + object.targetLanguage = message.targetLanguage; + return object; + }; + + /** + * Converts this MetricxSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @instance + * @returns {Object.} JSON object + */ + MetricxSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricxSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MetricxSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricxSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetricxSpec"; + }; + + /** + * MetricxVersion enum. + * @name google.cloud.aiplatform.v1.MetricxSpec.MetricxVersion + * @enum {number} + * @property {number} METRICX_VERSION_UNSPECIFIED=0 METRICX_VERSION_UNSPECIFIED value + * @property {number} METRICX_24_REF=1 METRICX_24_REF value + * @property {number} METRICX_24_SRC=2 METRICX_24_SRC value + * @property {number} METRICX_24_SRC_REF=3 METRICX_24_SRC_REF value + */ + MetricxSpec.MetricxVersion = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METRICX_VERSION_UNSPECIFIED"] = 0; + values[valuesById[1] = "METRICX_24_REF"] = 1; + values[valuesById[2] = "METRICX_24_SRC"] = 2; + values[valuesById[3] = "METRICX_24_SRC_REF"] = 3; + return values; + })(); + + return MetricxSpec; + })(); + + v1.MetricxInstance = (function() { + + /** + * Properties of a MetricxInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IMetricxInstance + * @property {string|null} [prediction] MetricxInstance prediction + * @property {string|null} [reference] MetricxInstance reference + * @property {string|null} [source] MetricxInstance source + */ + + /** + * Constructs a new MetricxInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a MetricxInstance. + * @implements IMetricxInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IMetricxInstance=} [properties] Properties to set + */ + function MetricxInstance(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]]; + } + + /** + * MetricxInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @instance + */ + MetricxInstance.prototype.prediction = null; + + /** + * MetricxInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @instance + */ + MetricxInstance.prototype.reference = null; + + /** + * MetricxInstance source. + * @member {string|null|undefined} source + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @instance + */ + MetricxInstance.prototype.source = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MetricxInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @instance + */ + Object.defineProperty(MetricxInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MetricxInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @instance + */ + Object.defineProperty(MetricxInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MetricxInstance _source. + * @member {"source"|undefined} _source + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @instance + */ + Object.defineProperty(MetricxInstance.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MetricxInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @static + * @param {google.cloud.aiplatform.v1.IMetricxInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MetricxInstance} MetricxInstance instance + */ + MetricxInstance.create = function create(properties) { + return new MetricxInstance(properties); + }; + + /** + * Encodes the specified MetricxInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @static + * @param {google.cloud.aiplatform.v1.IMetricxInstance} message MetricxInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricxInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.source); + return writer; + }; + + /** + * Encodes the specified MetricxInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @static + * @param {google.cloud.aiplatform.v1.IMetricxInstance} message MetricxInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricxInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricxInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MetricxInstance} MetricxInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricxInstance.decode = function decode(reader, 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.MetricxInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + case 3: { + message.source = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricxInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MetricxInstance} MetricxInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricxInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricxInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricxInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.source != null && message.hasOwnProperty("source")) { + properties._source = 1; + if (!$util.isString(message.source)) + return "source: string expected"; + } + return null; + }; + + /** + * Creates a MetricxInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MetricxInstance} MetricxInstance + */ + MetricxInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MetricxInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.MetricxInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.source != null) + message.source = String(object.source); + return message; + }; + + /** + * Creates a plain object from a MetricxInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @static + * @param {google.cloud.aiplatform.v1.MetricxInstance} message MetricxInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricxInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.source != null && message.hasOwnProperty("source")) { + object.source = message.source; + if (options.oneofs) + object._source = "source"; + } + return object; + }; + + /** + * Converts this MetricxInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @instance + * @returns {Object.} JSON object + */ + MetricxInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricxInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MetricxInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricxInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetricxInstance"; + }; + + return MetricxInstance; + })(); + + v1.MetricxResult = (function() { + + /** + * Properties of a MetricxResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IMetricxResult + * @property {number|null} [score] MetricxResult score + */ + + /** + * Constructs a new MetricxResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a MetricxResult. + * @implements IMetricxResult + * @constructor + * @param {google.cloud.aiplatform.v1.IMetricxResult=} [properties] Properties to set + */ + function MetricxResult(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]]; + } + + /** + * MetricxResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @instance + */ + MetricxResult.prototype.score = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MetricxResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @instance + */ + Object.defineProperty(MetricxResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MetricxResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @static + * @param {google.cloud.aiplatform.v1.IMetricxResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MetricxResult} MetricxResult instance + */ + MetricxResult.create = function create(properties) { + return new MetricxResult(properties); + }; + + /** + * Encodes the specified MetricxResult message. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @static + * @param {google.cloud.aiplatform.v1.IMetricxResult} message MetricxResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricxResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + return writer; + }; + + /** + * Encodes the specified MetricxResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetricxResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @static + * @param {google.cloud.aiplatform.v1.IMetricxResult} message MetricxResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricxResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricxResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MetricxResult} MetricxResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricxResult.decode = function decode(reader, 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.MetricxResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricxResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MetricxResult} MetricxResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricxResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricxResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricxResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + return null; + }; + + /** + * Creates a MetricxResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MetricxResult} MetricxResult + */ + MetricxResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MetricxResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.MetricxResult(); + if (object.score != null) + message.score = Number(object.score); + return message; + }; + + /** + * Creates a plain object from a MetricxResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @static + * @param {google.cloud.aiplatform.v1.MetricxResult} message MetricxResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricxResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + return object; + }; + + /** + * Converts this MetricxResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @instance + * @returns {Object.} JSON object + */ + MetricxResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricxResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MetricxResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricxResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetricxResult"; + }; + + return MetricxResult; + })(); + v1.Event = (function() { /** @@ -114853,6 +117208,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|batchCreateFeatures}. + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @typedef BatchCreateFeaturesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls BatchCreateFeatures. + * @function batchCreateFeatures + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest} request BatchCreateFeaturesRequest message or plain object + * @param {google.cloud.aiplatform.v1.FeatureRegistryService.BatchCreateFeaturesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.batchCreateFeatures = function batchCreateFeatures(request, callback) { + return this.rpcCall(batchCreateFeatures, $root.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchCreateFeatures" }); + + /** + * Calls BatchCreateFeatures. + * @function batchCreateFeatures + * @memberof google.cloud.aiplatform.v1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest} request BatchCreateFeaturesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1.FeatureRegistryService|getFeature}. * @memberof google.cloud.aiplatform.v1.FeatureRegistryService @@ -134070,6 +136458,7 @@ * @property {google.cloud.aiplatform.v1.ITunedModel|null} [tunedModel] TuningJob tunedModel * @property {google.cloud.aiplatform.v1.ITuningDataStats|null} [tuningDataStats] TuningJob tuningDataStats * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] TuningJob encryptionSpec + * @property {string|null} [serviceAccount] TuningJob serviceAccount */ /** @@ -134216,6 +136605,14 @@ */ TuningJob.prototype.encryptionSpec = null; + /** + * TuningJob serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1.TuningJob + * @instance + */ + TuningJob.prototype.serviceAccount = ""; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -134298,6 +136695,8 @@ $root.google.cloud.aiplatform.v1.TuningDataStats.encode(message.tuningDataStats, writer.uint32(/* id 15, wireType 2 =*/122).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 22, wireType 2 =*/178).string(message.serviceAccount); return writer; }; @@ -134415,6 +136814,10 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 22: { + message.serviceAccount = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -134542,6 +136945,9 @@ if (error) return "encryptionSpec." + error; } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; return null; }; @@ -134675,6 +137081,8 @@ throw TypeError(".google.cloud.aiplatform.v1.TuningJob.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); return message; }; @@ -134707,6 +137115,7 @@ object.tunedModel = null; object.tuningDataStats = null; object.encryptionSpec = null; + object.serviceAccount = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -134750,6 +137159,8 @@ object.tuningDataStats = $root.google.cloud.aiplatform.v1.TuningDataStats.toObject(message.tuningDataStats, 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; return object; }; @@ -362284,6 +364695,7 @@ * @property {boolean|null} [enableAccessLogging] DeployedModel enableAccessLogging * @property {google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null} [privateEndpoints] DeployedModel privateEndpoints * @property {google.cloud.aiplatform.v1beta1.IFasterDeploymentConfig|null} [fasterDeploymentConfig] DeployedModel fasterDeploymentConfig + * @property {Object.|null} [systemLabels] DeployedModel systemLabels */ /** @@ -362295,6 +364707,7 @@ * @param {google.cloud.aiplatform.v1beta1.IDeployedModel=} [properties] Properties to set */ function DeployedModel(properties) { + this.systemLabels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -362421,6 +364834,14 @@ */ DeployedModel.prototype.fasterDeploymentConfig = null; + /** + * DeployedModel systemLabels. + * @member {Object.} systemLabels + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.systemLabels = $util.emptyObject; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -362489,6 +364910,9 @@ writer.uint32(/* id 19, wireType 0 =*/152).bool(message.disableExplanations); if (message.fasterDeploymentConfig != null && Object.hasOwnProperty.call(message, "fasterDeploymentConfig")) $root.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig.encode(message.fasterDeploymentConfig, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.systemLabels != null && Object.hasOwnProperty.call(message, "systemLabels")) + for (var keys = Object.keys(message.systemLabels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 28, wireType 2 =*/226).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.systemLabels[keys[i]]).ldelim(); return writer; }; @@ -362519,7 +364943,7 @@ DeployedModel.decode = function decode(reader, 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.DeployedModel(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedModel(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -362583,6 +365007,29 @@ message.fasterDeploymentConfig = $root.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig.decode(reader, reader.uint32()); break; } + case 28: { + if (message.systemLabels === $util.emptyObject) + message.systemLabels = {}; + 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.systemLabels[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -362688,6 +365135,14 @@ if (error) return "fasterDeploymentConfig." + error; } + if (message.systemLabels != null && message.hasOwnProperty("systemLabels")) { + if (!$util.isObject(message.systemLabels)) + return "systemLabels: object expected"; + var key = Object.keys(message.systemLabels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.systemLabels[key[i]])) + return "systemLabels: string{k:string} expected"; + } return null; }; @@ -362751,6 +365206,13 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.fasterDeploymentConfig: object expected"); message.fasterDeploymentConfig = $root.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig.fromObject(object.fasterDeploymentConfig); } + if (object.systemLabels) { + if (typeof object.systemLabels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.systemLabels: object expected"); + message.systemLabels = {}; + for (var keys = Object.keys(object.systemLabels), i = 0; i < keys.length; ++i) + message.systemLabels[keys[i]] = String(object.systemLabels[keys[i]]); + } return message; }; @@ -362767,6 +365229,8 @@ if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.systemLabels = {}; if (options.defaults) { object.id = ""; object.model = ""; @@ -362820,6 +365284,12 @@ object.disableExplanations = message.disableExplanations; if (message.fasterDeploymentConfig != null && message.hasOwnProperty("fasterDeploymentConfig")) object.fasterDeploymentConfig = $root.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig.toObject(message.fasterDeploymentConfig, options); + var keys2; + if (message.systemLabels && (keys2 = Object.keys(message.systemLabels)).length) { + object.systemLabels = {}; + for (var j = 0; j < keys2.length; ++j) + object.systemLabels[keys2[j]] = message.systemLabels[keys2[j]]; + } return object; }; @@ -405509,6 +407979,7 @@ * @property {boolean|null} [disableMonitoring] Feature disableMonitoring * @property {Array.|null} [monitoringStats] Feature monitoringStats * @property {Array.|null} [monitoringStatsAnomalies] Feature monitoringStatsAnomalies + * @property {Array.|null} [featureStatsAndAnomaly] Feature featureStatsAndAnomaly * @property {string|null} [versionColumnName] Feature versionColumnName * @property {string|null} [pointOfContact] Feature pointOfContact */ @@ -405525,6 +407996,7 @@ this.labels = {}; this.monitoringStats = []; this.monitoringStatsAnomalies = []; + this.featureStatsAndAnomaly = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -405619,6 +408091,14 @@ */ Feature.prototype.monitoringStatsAnomalies = $util.emptyArray; + /** + * Feature featureStatsAndAnomaly. + * @member {Array.} featureStatsAndAnomaly + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.featureStatsAndAnomaly = $util.emptyArray; + /** * Feature versionColumnName. * @member {string} versionColumnName @@ -405684,6 +408164,9 @@ $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.encode(message.monitoringStatsAnomalies[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.disableMonitoring != null && Object.hasOwnProperty.call(message, "disableMonitoring")) writer.uint32(/* id 12, wireType 0 =*/96).bool(message.disableMonitoring); + if (message.featureStatsAndAnomaly != null && message.featureStatsAndAnomaly.length) + for (var i = 0; i < message.featureStatsAndAnomaly.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.encode(message.featureStatsAndAnomaly[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.versionColumnName != null && Object.hasOwnProperty.call(message, "versionColumnName")) writer.uint32(/* id 106, wireType 2 =*/850).string(message.versionColumnName); if (message.pointOfContact != null && Object.hasOwnProperty.call(message, "pointOfContact")) @@ -405789,6 +408272,12 @@ message.monitoringStatsAnomalies.push($root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.decode(reader, reader.uint32())); break; } + case 13: { + if (!(message.featureStatsAndAnomaly && message.featureStatsAndAnomaly.length)) + message.featureStatsAndAnomaly = []; + message.featureStatsAndAnomaly.push($root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.decode(reader, reader.uint32())); + break; + } case 106: { message.versionColumnName = reader.string(); break; @@ -405902,6 +408391,15 @@ return "monitoringStatsAnomalies." + error; } } + if (message.featureStatsAndAnomaly != null && message.hasOwnProperty("featureStatsAndAnomaly")) { + if (!Array.isArray(message.featureStatsAndAnomaly)) + return "featureStatsAndAnomaly: array expected"; + for (var i = 0; i < message.featureStatsAndAnomaly.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.verify(message.featureStatsAndAnomaly[i]); + if (error) + return "featureStatsAndAnomaly." + error; + } + } if (message.versionColumnName != null && message.hasOwnProperty("versionColumnName")) if (!$util.isString(message.versionColumnName)) return "versionColumnName: string expected"; @@ -406025,6 +408523,16 @@ message.monitoringStatsAnomalies[i] = $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.fromObject(object.monitoringStatsAnomalies[i]); } } + if (object.featureStatsAndAnomaly) { + if (!Array.isArray(object.featureStatsAndAnomaly)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.featureStatsAndAnomaly: array expected"); + message.featureStatsAndAnomaly = []; + for (var i = 0; i < object.featureStatsAndAnomaly.length; ++i) { + if (typeof object.featureStatsAndAnomaly[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.featureStatsAndAnomaly: object expected"); + message.featureStatsAndAnomaly[i] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.fromObject(object.featureStatsAndAnomaly[i]); + } + } if (object.versionColumnName != null) message.versionColumnName = String(object.versionColumnName); if (object.pointOfContact != null) @@ -406048,6 +408556,7 @@ if (options.arrays || options.defaults) { object.monitoringStats = []; object.monitoringStatsAnomalies = []; + object.featureStatsAndAnomaly = []; } if (options.objects || options.defaults) object.labels = {}; @@ -406095,6 +408604,11 @@ } if (message.disableMonitoring != null && message.hasOwnProperty("disableMonitoring")) object.disableMonitoring = message.disableMonitoring; + if (message.featureStatsAndAnomaly && message.featureStatsAndAnomaly.length) { + object.featureStatsAndAnomaly = []; + for (var j = 0; j < message.featureStatsAndAnomaly.length; ++j) + object.featureStatsAndAnomaly[j] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.toObject(message.featureStatsAndAnomaly[j], options); + } if (message.versionColumnName != null && message.hasOwnProperty("versionColumnName")) object.versionColumnName = message.versionColumnName; if (message.pointOfContact != null && message.hasOwnProperty("pointOfContact")) @@ -406435,6 +408949,1720 @@ return Feature; })(); + v1beta1.FeatureMonitor = (function() { + + /** + * Properties of a FeatureMonitor. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IFeatureMonitor + * @property {string|null} [name] FeatureMonitor name + * @property {google.protobuf.ITimestamp|null} [createTime] FeatureMonitor createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] FeatureMonitor updateTime + * @property {string|null} [etag] FeatureMonitor etag + * @property {Object.|null} [labels] FeatureMonitor labels + * @property {string|null} [description] FeatureMonitor description + * @property {google.cloud.aiplatform.v1beta1.IScheduleConfig|null} [scheduleConfig] FeatureMonitor scheduleConfig + * @property {google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig|null} [featureSelectionConfig] FeatureMonitor featureSelectionConfig + */ + + /** + * Constructs a new FeatureMonitor. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a FeatureMonitor. + * @implements IFeatureMonitor + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IFeatureMonitor=} [properties] Properties to set + */ + function FeatureMonitor(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]]; + } + + /** + * FeatureMonitor name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @instance + */ + FeatureMonitor.prototype.name = ""; + + /** + * FeatureMonitor createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @instance + */ + FeatureMonitor.prototype.createTime = null; + + /** + * FeatureMonitor updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @instance + */ + FeatureMonitor.prototype.updateTime = null; + + /** + * FeatureMonitor etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @instance + */ + FeatureMonitor.prototype.etag = ""; + + /** + * FeatureMonitor labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @instance + */ + FeatureMonitor.prototype.labels = $util.emptyObject; + + /** + * FeatureMonitor description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @instance + */ + FeatureMonitor.prototype.description = ""; + + /** + * FeatureMonitor scheduleConfig. + * @member {google.cloud.aiplatform.v1beta1.IScheduleConfig|null|undefined} scheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @instance + */ + FeatureMonitor.prototype.scheduleConfig = null; + + /** + * FeatureMonitor featureSelectionConfig. + * @member {google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig|null|undefined} featureSelectionConfig + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @instance + */ + FeatureMonitor.prototype.featureSelectionConfig = null; + + /** + * Creates a new FeatureMonitor instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureMonitor=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureMonitor} FeatureMonitor instance + */ + FeatureMonitor.create = function create(properties) { + return new FeatureMonitor(properties); + }; + + /** + * Encodes the specified FeatureMonitor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitor.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureMonitor} message FeatureMonitor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureMonitor.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 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 4, wireType 2 =*/34).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 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); + if (message.scheduleConfig != null && Object.hasOwnProperty.call(message, "scheduleConfig")) + $root.google.cloud.aiplatform.v1beta1.ScheduleConfig.encode(message.scheduleConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.featureSelectionConfig != null && Object.hasOwnProperty.call(message, "featureSelectionConfig")) + $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.encode(message.featureSelectionConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FeatureMonitor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureMonitor} message FeatureMonitor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureMonitor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureMonitor message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @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.FeatureMonitor} FeatureMonitor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureMonitor.decode = function decode(reader, 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.FeatureMonitor(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.etag = reader.string(); + break; + } + case 5: { + 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 6: { + message.description = reader.string(); + break; + } + case 7: { + message.scheduleConfig = $root.google.cloud.aiplatform.v1beta1.ScheduleConfig.decode(reader, reader.uint32()); + break; + } + case 8: { + message.featureSelectionConfig = $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureMonitor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureMonitor} FeatureMonitor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureMonitor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureMonitor message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureMonitor.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.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.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.scheduleConfig != null && message.hasOwnProperty("scheduleConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ScheduleConfig.verify(message.scheduleConfig); + if (error) + return "scheduleConfig." + error; + } + if (message.featureSelectionConfig != null && message.hasOwnProperty("featureSelectionConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.verify(message.featureSelectionConfig); + if (error) + return "featureSelectionConfig." + error; + } + return null; + }; + + /** + * Creates a FeatureMonitor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureMonitor} FeatureMonitor + */ + FeatureMonitor.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureMonitor) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureMonitor(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitor.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.FeatureMonitor.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitor.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.description != null) + message.description = String(object.description); + if (object.scheduleConfig != null) { + if (typeof object.scheduleConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitor.scheduleConfig: object expected"); + message.scheduleConfig = $root.google.cloud.aiplatform.v1beta1.ScheduleConfig.fromObject(object.scheduleConfig); + } + if (object.featureSelectionConfig != null) { + if (typeof object.featureSelectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitor.featureSelectionConfig: object expected"); + message.featureSelectionConfig = $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.fromObject(object.featureSelectionConfig); + } + return message; + }; + + /** + * Creates a plain object from a FeatureMonitor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitor} message FeatureMonitor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureMonitor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.etag = ""; + object.description = ""; + object.scheduleConfig = null; + object.featureSelectionConfig = 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.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.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.scheduleConfig != null && message.hasOwnProperty("scheduleConfig")) + object.scheduleConfig = $root.google.cloud.aiplatform.v1beta1.ScheduleConfig.toObject(message.scheduleConfig, options); + if (message.featureSelectionConfig != null && message.hasOwnProperty("featureSelectionConfig")) + object.featureSelectionConfig = $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.toObject(message.featureSelectionConfig, options); + return object; + }; + + /** + * Converts this FeatureMonitor to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @instance + * @returns {Object.} JSON object + */ + FeatureMonitor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureMonitor + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureMonitor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureMonitor"; + }; + + return FeatureMonitor; + })(); + + v1beta1.ScheduleConfig = (function() { + + /** + * Properties of a ScheduleConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IScheduleConfig + * @property {string|null} [cron] ScheduleConfig cron + */ + + /** + * Constructs a new ScheduleConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ScheduleConfig. + * @implements IScheduleConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IScheduleConfig=} [properties] Properties to set + */ + function ScheduleConfig(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]]; + } + + /** + * ScheduleConfig cron. + * @member {string} cron + * @memberof google.cloud.aiplatform.v1beta1.ScheduleConfig + * @instance + */ + ScheduleConfig.prototype.cron = ""; + + /** + * Creates a new ScheduleConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IScheduleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ScheduleConfig} ScheduleConfig instance + */ + ScheduleConfig.create = function create(properties) { + return new ScheduleConfig(properties); + }; + + /** + * Encodes the specified ScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ScheduleConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IScheduleConfig} message ScheduleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ScheduleConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cron != null && Object.hasOwnProperty.call(message, "cron")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cron); + return writer; + }; + + /** + * Encodes the specified ScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ScheduleConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IScheduleConfig} message ScheduleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ScheduleConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ScheduleConfig + * @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.ScheduleConfig} ScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ScheduleConfig.decode = function decode(reader, 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.ScheduleConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.cron = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ScheduleConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ScheduleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ScheduleConfig} ScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ScheduleConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ScheduleConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ScheduleConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ScheduleConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cron != null && message.hasOwnProperty("cron")) + if (!$util.isString(message.cron)) + return "cron: string expected"; + return null; + }; + + /** + * Creates a ScheduleConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ScheduleConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ScheduleConfig} ScheduleConfig + */ + ScheduleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ScheduleConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ScheduleConfig(); + if (object.cron != null) + message.cron = String(object.cron); + return message; + }; + + /** + * Creates a plain object from a ScheduleConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ScheduleConfig} message ScheduleConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ScheduleConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.cron = ""; + if (message.cron != null && message.hasOwnProperty("cron")) + object.cron = message.cron; + return object; + }; + + /** + * Converts this ScheduleConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ScheduleConfig + * @instance + * @returns {Object.} JSON object + */ + ScheduleConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ScheduleConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ScheduleConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ScheduleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ScheduleConfig"; + }; + + return ScheduleConfig; + })(); + + v1beta1.FeatureSelectionConfig = (function() { + + /** + * Properties of a FeatureSelectionConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IFeatureSelectionConfig + * @property {Array.|null} [featureConfigs] FeatureSelectionConfig featureConfigs + */ + + /** + * Constructs a new FeatureSelectionConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a FeatureSelectionConfig. + * @implements IFeatureSelectionConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig=} [properties] Properties to set + */ + function FeatureSelectionConfig(properties) { + this.featureConfigs = []; + 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]]; + } + + /** + * FeatureSelectionConfig featureConfigs. + * @member {Array.} featureConfigs + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @instance + */ + FeatureSelectionConfig.prototype.featureConfigs = $util.emptyArray; + + /** + * Creates a new FeatureSelectionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig} FeatureSelectionConfig instance + */ + FeatureSelectionConfig.create = function create(properties) { + return new FeatureSelectionConfig(properties); + }; + + /** + * Encodes the specified FeatureSelectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig} message FeatureSelectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSelectionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.featureConfigs != null && message.featureConfigs.length) + for (var i = 0; i < message.featureConfigs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig.encode(message.featureConfigs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FeatureSelectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig} message FeatureSelectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSelectionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSelectionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @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.FeatureSelectionConfig} FeatureSelectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSelectionConfig.decode = function decode(reader, 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.FeatureSelectionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.featureConfigs && message.featureConfigs.length)) + message.featureConfigs = []; + message.featureConfigs.push($root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSelectionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig} FeatureSelectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSelectionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSelectionConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSelectionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.featureConfigs != null && message.hasOwnProperty("featureConfigs")) { + if (!Array.isArray(message.featureConfigs)) + return "featureConfigs: array expected"; + for (var i = 0; i < message.featureConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig.verify(message.featureConfigs[i]); + if (error) + return "featureConfigs." + error; + } + } + return null; + }; + + /** + * Creates a FeatureSelectionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig} FeatureSelectionConfig + */ + FeatureSelectionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig(); + if (object.featureConfigs) { + if (!Array.isArray(object.featureConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.featureConfigs: array expected"); + message.featureConfigs = []; + for (var i = 0; i < object.featureConfigs.length; ++i) { + if (typeof object.featureConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.featureConfigs: object expected"); + message.featureConfigs[i] = $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig.fromObject(object.featureConfigs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FeatureSelectionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig} message FeatureSelectionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSelectionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.featureConfigs = []; + if (message.featureConfigs && message.featureConfigs.length) { + object.featureConfigs = []; + for (var j = 0; j < message.featureConfigs.length; ++j) + object.featureConfigs[j] = $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig.toObject(message.featureConfigs[j], options); + } + return object; + }; + + /** + * Converts this FeatureSelectionConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @instance + * @returns {Object.} JSON object + */ + FeatureSelectionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSelectionConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSelectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureSelectionConfig"; + }; + + FeatureSelectionConfig.FeatureConfig = (function() { + + /** + * Properties of a FeatureConfig. + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @interface IFeatureConfig + * @property {string|null} [featureId] FeatureConfig featureId + * @property {number|null} [driftThreshold] FeatureConfig driftThreshold + */ + + /** + * Constructs a new FeatureConfig. + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig + * @classdesc Represents a FeatureConfig. + * @implements IFeatureConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.IFeatureConfig=} [properties] Properties to set + */ + function FeatureConfig(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]]; + } + + /** + * FeatureConfig featureId. + * @member {string} featureId + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @instance + */ + FeatureConfig.prototype.featureId = ""; + + /** + * FeatureConfig driftThreshold. + * @member {number} driftThreshold + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @instance + */ + FeatureConfig.prototype.driftThreshold = 0; + + /** + * Creates a new FeatureConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.IFeatureConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig} FeatureConfig instance + */ + FeatureConfig.create = function create(properties) { + return new FeatureConfig(properties); + }; + + /** + * Encodes the specified FeatureConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.IFeatureConfig} message FeatureConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.featureId != null && Object.hasOwnProperty.call(message, "featureId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureId); + if (message.driftThreshold != null && Object.hasOwnProperty.call(message, "driftThreshold")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.driftThreshold); + return writer; + }; + + /** + * Encodes the specified FeatureConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.IFeatureConfig} message FeatureConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @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.FeatureSelectionConfig.FeatureConfig} FeatureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureConfig.decode = function decode(reader, 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.FeatureSelectionConfig.FeatureConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.featureId = reader.string(); + break; + } + case 2: { + message.driftThreshold = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig} FeatureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.featureId != null && message.hasOwnProperty("featureId")) + if (!$util.isString(message.featureId)) + return "featureId: string expected"; + if (message.driftThreshold != null && message.hasOwnProperty("driftThreshold")) + if (typeof message.driftThreshold !== "number") + return "driftThreshold: number expected"; + return null; + }; + + /** + * Creates a FeatureConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig} FeatureConfig + */ + FeatureConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig(); + if (object.featureId != null) + message.featureId = String(object.featureId); + if (object.driftThreshold != null) + message.driftThreshold = Number(object.driftThreshold); + return message; + }; + + /** + * Creates a plain object from a FeatureConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig} message FeatureConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.featureId = ""; + object.driftThreshold = 0; + } + if (message.featureId != null && message.hasOwnProperty("featureId")) + object.featureId = message.featureId; + if (message.driftThreshold != null && message.hasOwnProperty("driftThreshold")) + object.driftThreshold = options.json && !isFinite(message.driftThreshold) ? String(message.driftThreshold) : message.driftThreshold; + return object; + }; + + /** + * Converts this FeatureConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @instance + * @returns {Object.} JSON object + */ + FeatureConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.FeatureConfig"; + }; + + return FeatureConfig; + })(); + + return FeatureSelectionConfig; + })(); + + v1beta1.FeatureStatsAndAnomaly = (function() { + + /** + * Properties of a FeatureStatsAndAnomaly. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IFeatureStatsAndAnomaly + * @property {string|null} [featureId] FeatureStatsAndAnomaly featureId + * @property {google.protobuf.IValue|null} [featureStats] FeatureStatsAndAnomaly featureStats + * @property {number|null} [distributionDeviation] FeatureStatsAndAnomaly distributionDeviation + * @property {number|null} [driftDetectionThreshold] FeatureStatsAndAnomaly driftDetectionThreshold + * @property {boolean|null} [driftDetected] FeatureStatsAndAnomaly driftDetected + * @property {google.protobuf.ITimestamp|null} [statsTime] FeatureStatsAndAnomaly statsTime + * @property {number|Long|null} [featureMonitorJobId] FeatureStatsAndAnomaly featureMonitorJobId + * @property {string|null} [featureMonitorId] FeatureStatsAndAnomaly featureMonitorId + */ + + /** + * Constructs a new FeatureStatsAndAnomaly. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a FeatureStatsAndAnomaly. + * @implements IFeatureStatsAndAnomaly + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly=} [properties] Properties to set + */ + function FeatureStatsAndAnomaly(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]]; + } + + /** + * FeatureStatsAndAnomaly featureId. + * @member {string} featureId + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @instance + */ + FeatureStatsAndAnomaly.prototype.featureId = ""; + + /** + * FeatureStatsAndAnomaly featureStats. + * @member {google.protobuf.IValue|null|undefined} featureStats + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @instance + */ + FeatureStatsAndAnomaly.prototype.featureStats = null; + + /** + * FeatureStatsAndAnomaly distributionDeviation. + * @member {number} distributionDeviation + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @instance + */ + FeatureStatsAndAnomaly.prototype.distributionDeviation = 0; + + /** + * FeatureStatsAndAnomaly driftDetectionThreshold. + * @member {number} driftDetectionThreshold + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @instance + */ + FeatureStatsAndAnomaly.prototype.driftDetectionThreshold = 0; + + /** + * FeatureStatsAndAnomaly driftDetected. + * @member {boolean} driftDetected + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @instance + */ + FeatureStatsAndAnomaly.prototype.driftDetected = false; + + /** + * FeatureStatsAndAnomaly statsTime. + * @member {google.protobuf.ITimestamp|null|undefined} statsTime + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @instance + */ + FeatureStatsAndAnomaly.prototype.statsTime = null; + + /** + * FeatureStatsAndAnomaly featureMonitorJobId. + * @member {number|Long} featureMonitorJobId + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @instance + */ + FeatureStatsAndAnomaly.prototype.featureMonitorJobId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * FeatureStatsAndAnomaly featureMonitorId. + * @member {string} featureMonitorId + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @instance + */ + FeatureStatsAndAnomaly.prototype.featureMonitorId = ""; + + /** + * Creates a new FeatureStatsAndAnomaly instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly} FeatureStatsAndAnomaly instance + */ + FeatureStatsAndAnomaly.create = function create(properties) { + return new FeatureStatsAndAnomaly(properties); + }; + + /** + * Encodes the specified FeatureStatsAndAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly} message FeatureStatsAndAnomaly message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureStatsAndAnomaly.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.featureId != null && Object.hasOwnProperty.call(message, "featureId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureId); + if (message.featureStats != null && Object.hasOwnProperty.call(message, "featureStats")) + $root.google.protobuf.Value.encode(message.featureStats, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.distributionDeviation != null && Object.hasOwnProperty.call(message, "distributionDeviation")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.distributionDeviation); + if (message.driftDetectionThreshold != null && Object.hasOwnProperty.call(message, "driftDetectionThreshold")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.driftDetectionThreshold); + if (message.driftDetected != null && Object.hasOwnProperty.call(message, "driftDetected")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.driftDetected); + if (message.statsTime != null && Object.hasOwnProperty.call(message, "statsTime")) + $root.google.protobuf.Timestamp.encode(message.statsTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.featureMonitorJobId != null && Object.hasOwnProperty.call(message, "featureMonitorJobId")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.featureMonitorJobId); + if (message.featureMonitorId != null && Object.hasOwnProperty.call(message, "featureMonitorId")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.featureMonitorId); + return writer; + }; + + /** + * Encodes the specified FeatureStatsAndAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomaly} message FeatureStatsAndAnomaly message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureStatsAndAnomaly.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureStatsAndAnomaly message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @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.FeatureStatsAndAnomaly} FeatureStatsAndAnomaly + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureStatsAndAnomaly.decode = function decode(reader, 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.FeatureStatsAndAnomaly(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.featureId = reader.string(); + break; + } + case 2: { + message.featureStats = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 3: { + message.distributionDeviation = reader.double(); + break; + } + case 4: { + message.driftDetectionThreshold = reader.double(); + break; + } + case 5: { + message.driftDetected = reader.bool(); + break; + } + case 6: { + message.statsTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.featureMonitorJobId = reader.int64(); + break; + } + case 8: { + message.featureMonitorId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureStatsAndAnomaly message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly} FeatureStatsAndAnomaly + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureStatsAndAnomaly.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureStatsAndAnomaly message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureStatsAndAnomaly.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.featureId != null && message.hasOwnProperty("featureId")) + if (!$util.isString(message.featureId)) + return "featureId: string expected"; + if (message.featureStats != null && message.hasOwnProperty("featureStats")) { + var error = $root.google.protobuf.Value.verify(message.featureStats); + if (error) + return "featureStats." + error; + } + if (message.distributionDeviation != null && message.hasOwnProperty("distributionDeviation")) + if (typeof message.distributionDeviation !== "number") + return "distributionDeviation: number expected"; + if (message.driftDetectionThreshold != null && message.hasOwnProperty("driftDetectionThreshold")) + if (typeof message.driftDetectionThreshold !== "number") + return "driftDetectionThreshold: number expected"; + if (message.driftDetected != null && message.hasOwnProperty("driftDetected")) + if (typeof message.driftDetected !== "boolean") + return "driftDetected: boolean expected"; + if (message.statsTime != null && message.hasOwnProperty("statsTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.statsTime); + if (error) + return "statsTime." + error; + } + if (message.featureMonitorJobId != null && message.hasOwnProperty("featureMonitorJobId")) + if (!$util.isInteger(message.featureMonitorJobId) && !(message.featureMonitorJobId && $util.isInteger(message.featureMonitorJobId.low) && $util.isInteger(message.featureMonitorJobId.high))) + return "featureMonitorJobId: integer|Long expected"; + if (message.featureMonitorId != null && message.hasOwnProperty("featureMonitorId")) + if (!$util.isString(message.featureMonitorId)) + return "featureMonitorId: string expected"; + return null; + }; + + /** + * Creates a FeatureStatsAndAnomaly message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly} FeatureStatsAndAnomaly + */ + FeatureStatsAndAnomaly.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly(); + if (object.featureId != null) + message.featureId = String(object.featureId); + if (object.featureStats != null) { + if (typeof object.featureStats !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.featureStats: object expected"); + message.featureStats = $root.google.protobuf.Value.fromObject(object.featureStats); + } + if (object.distributionDeviation != null) + message.distributionDeviation = Number(object.distributionDeviation); + if (object.driftDetectionThreshold != null) + message.driftDetectionThreshold = Number(object.driftDetectionThreshold); + if (object.driftDetected != null) + message.driftDetected = Boolean(object.driftDetected); + if (object.statsTime != null) { + if (typeof object.statsTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.statsTime: object expected"); + message.statsTime = $root.google.protobuf.Timestamp.fromObject(object.statsTime); + } + if (object.featureMonitorJobId != null) + if ($util.Long) + (message.featureMonitorJobId = $util.Long.fromValue(object.featureMonitorJobId)).unsigned = false; + else if (typeof object.featureMonitorJobId === "string") + message.featureMonitorJobId = parseInt(object.featureMonitorJobId, 10); + else if (typeof object.featureMonitorJobId === "number") + message.featureMonitorJobId = object.featureMonitorJobId; + else if (typeof object.featureMonitorJobId === "object") + message.featureMonitorJobId = new $util.LongBits(object.featureMonitorJobId.low >>> 0, object.featureMonitorJobId.high >>> 0).toNumber(); + if (object.featureMonitorId != null) + message.featureMonitorId = String(object.featureMonitorId); + return message; + }; + + /** + * Creates a plain object from a FeatureStatsAndAnomaly message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly} message FeatureStatsAndAnomaly + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureStatsAndAnomaly.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.featureId = ""; + object.featureStats = null; + object.distributionDeviation = 0; + object.driftDetectionThreshold = 0; + object.driftDetected = false; + object.statsTime = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.featureMonitorJobId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.featureMonitorJobId = options.longs === String ? "0" : 0; + object.featureMonitorId = ""; + } + if (message.featureId != null && message.hasOwnProperty("featureId")) + object.featureId = message.featureId; + if (message.featureStats != null && message.hasOwnProperty("featureStats")) + object.featureStats = $root.google.protobuf.Value.toObject(message.featureStats, options); + if (message.distributionDeviation != null && message.hasOwnProperty("distributionDeviation")) + object.distributionDeviation = options.json && !isFinite(message.distributionDeviation) ? String(message.distributionDeviation) : message.distributionDeviation; + if (message.driftDetectionThreshold != null && message.hasOwnProperty("driftDetectionThreshold")) + object.driftDetectionThreshold = options.json && !isFinite(message.driftDetectionThreshold) ? String(message.driftDetectionThreshold) : message.driftDetectionThreshold; + if (message.driftDetected != null && message.hasOwnProperty("driftDetected")) + object.driftDetected = message.driftDetected; + if (message.statsTime != null && message.hasOwnProperty("statsTime")) + object.statsTime = $root.google.protobuf.Timestamp.toObject(message.statsTime, options); + if (message.featureMonitorJobId != null && message.hasOwnProperty("featureMonitorJobId")) + if (typeof message.featureMonitorJobId === "number") + object.featureMonitorJobId = options.longs === String ? String(message.featureMonitorJobId) : message.featureMonitorJobId; + else + object.featureMonitorJobId = options.longs === String ? $util.Long.prototype.toString.call(message.featureMonitorJobId) : options.longs === Number ? new $util.LongBits(message.featureMonitorJobId.low >>> 0, message.featureMonitorJobId.high >>> 0).toNumber() : message.featureMonitorJobId; + if (message.featureMonitorId != null && message.hasOwnProperty("featureMonitorId")) + object.featureMonitorId = message.featureMonitorId; + return object; + }; + + /** + * Converts this FeatureStatsAndAnomaly to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @instance + * @returns {Object.} JSON object + */ + FeatureStatsAndAnomaly.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureStatsAndAnomaly + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureStatsAndAnomaly.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly"; + }; + + return FeatureStatsAndAnomaly; + })(); + + v1beta1.FeatureStatsAndAnomalySpec = (function() { + + /** + * Properties of a FeatureStatsAndAnomalySpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IFeatureStatsAndAnomalySpec + * @property {number|null} [latestStatsCount] FeatureStatsAndAnomalySpec latestStatsCount + * @property {google.type.IInterval|null} [statsTimeRange] FeatureStatsAndAnomalySpec statsTimeRange + */ + + /** + * Constructs a new FeatureStatsAndAnomalySpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a FeatureStatsAndAnomalySpec. + * @implements IFeatureStatsAndAnomalySpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec=} [properties] Properties to set + */ + function FeatureStatsAndAnomalySpec(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]]; + } + + /** + * FeatureStatsAndAnomalySpec latestStatsCount. + * @member {number|null|undefined} latestStatsCount + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @instance + */ + FeatureStatsAndAnomalySpec.prototype.latestStatsCount = null; + + /** + * FeatureStatsAndAnomalySpec statsTimeRange. + * @member {google.type.IInterval|null|undefined} statsTimeRange + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @instance + */ + FeatureStatsAndAnomalySpec.prototype.statsTimeRange = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * FeatureStatsAndAnomalySpec _latestStatsCount. + * @member {"latestStatsCount"|undefined} _latestStatsCount + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @instance + */ + Object.defineProperty(FeatureStatsAndAnomalySpec.prototype, "_latestStatsCount", { + get: $util.oneOfGetter($oneOfFields = ["latestStatsCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FeatureStatsAndAnomalySpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec} FeatureStatsAndAnomalySpec instance + */ + FeatureStatsAndAnomalySpec.create = function create(properties) { + return new FeatureStatsAndAnomalySpec(properties); + }; + + /** + * Encodes the specified FeatureStatsAndAnomalySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec} message FeatureStatsAndAnomalySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureStatsAndAnomalySpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.latestStatsCount != null && Object.hasOwnProperty.call(message, "latestStatsCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.latestStatsCount); + if (message.statsTimeRange != null && Object.hasOwnProperty.call(message, "statsTimeRange")) + $root.google.type.Interval.encode(message.statsTimeRange, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FeatureStatsAndAnomalySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec} message FeatureStatsAndAnomalySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureStatsAndAnomalySpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureStatsAndAnomalySpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @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.FeatureStatsAndAnomalySpec} FeatureStatsAndAnomalySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureStatsAndAnomalySpec.decode = function decode(reader, 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.FeatureStatsAndAnomalySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.latestStatsCount = reader.int32(); + break; + } + case 2: { + message.statsTimeRange = $root.google.type.Interval.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureStatsAndAnomalySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec} FeatureStatsAndAnomalySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureStatsAndAnomalySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureStatsAndAnomalySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureStatsAndAnomalySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.latestStatsCount != null && message.hasOwnProperty("latestStatsCount")) { + properties._latestStatsCount = 1; + if (!$util.isInteger(message.latestStatsCount)) + return "latestStatsCount: integer expected"; + } + if (message.statsTimeRange != null && message.hasOwnProperty("statsTimeRange")) { + var error = $root.google.type.Interval.verify(message.statsTimeRange); + if (error) + return "statsTimeRange." + error; + } + return null; + }; + + /** + * Creates a FeatureStatsAndAnomalySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec} FeatureStatsAndAnomalySpec + */ + FeatureStatsAndAnomalySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec(); + if (object.latestStatsCount != null) + message.latestStatsCount = object.latestStatsCount | 0; + if (object.statsTimeRange != null) { + if (typeof object.statsTimeRange !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec.statsTimeRange: object expected"); + message.statsTimeRange = $root.google.type.Interval.fromObject(object.statsTimeRange); + } + return message; + }; + + /** + * Creates a plain object from a FeatureStatsAndAnomalySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec} message FeatureStatsAndAnomalySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureStatsAndAnomalySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.statsTimeRange = null; + if (message.latestStatsCount != null && message.hasOwnProperty("latestStatsCount")) { + object.latestStatsCount = message.latestStatsCount; + if (options.oneofs) + object._latestStatsCount = "latestStatsCount"; + } + if (message.statsTimeRange != null && message.hasOwnProperty("statsTimeRange")) + object.statsTimeRange = $root.google.type.Interval.toObject(message.statsTimeRange, options); + return object; + }; + + /** + * Converts this FeatureStatsAndAnomalySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @instance + * @returns {Object.} JSON object + */ + FeatureStatsAndAnomalySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureStatsAndAnomalySpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureStatsAndAnomalySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec"; + }; + + return FeatureStatsAndAnomalySpec; + })(); + v1beta1.FeatureGroup = (function() { /** @@ -407374,6 +411602,794 @@ return FeatureGroup; })(); + v1beta1.FeatureMonitorJob = (function() { + + /** + * Properties of a FeatureMonitorJob. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IFeatureMonitorJob + * @property {string|null} [name] FeatureMonitorJob name + * @property {google.protobuf.ITimestamp|null} [createTime] FeatureMonitorJob createTime + * @property {google.rpc.IStatus|null} [finalStatus] FeatureMonitorJob finalStatus + * @property {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary|null} [jobSummary] FeatureMonitorJob jobSummary + * @property {Object.|null} [labels] FeatureMonitorJob labels + * @property {string|null} [description] FeatureMonitorJob description + * @property {number|Long|null} [driftBaseFeatureMonitorJobId] FeatureMonitorJob driftBaseFeatureMonitorJobId + * @property {google.protobuf.ITimestamp|null} [driftBaseSnapshotTime] FeatureMonitorJob driftBaseSnapshotTime + * @property {google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig|null} [featureSelectionConfig] FeatureMonitorJob featureSelectionConfig + * @property {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.FeatureMonitorJobTrigger|null} [triggerType] FeatureMonitorJob triggerType + */ + + /** + * Constructs a new FeatureMonitorJob. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a FeatureMonitorJob. + * @implements IFeatureMonitorJob + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IFeatureMonitorJob=} [properties] Properties to set + */ + function FeatureMonitorJob(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]]; + } + + /** + * FeatureMonitorJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @instance + */ + FeatureMonitorJob.prototype.name = ""; + + /** + * FeatureMonitorJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @instance + */ + FeatureMonitorJob.prototype.createTime = null; + + /** + * FeatureMonitorJob finalStatus. + * @member {google.rpc.IStatus|null|undefined} finalStatus + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @instance + */ + FeatureMonitorJob.prototype.finalStatus = null; + + /** + * FeatureMonitorJob jobSummary. + * @member {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary|null|undefined} jobSummary + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @instance + */ + FeatureMonitorJob.prototype.jobSummary = null; + + /** + * FeatureMonitorJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @instance + */ + FeatureMonitorJob.prototype.labels = $util.emptyObject; + + /** + * FeatureMonitorJob description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @instance + */ + FeatureMonitorJob.prototype.description = ""; + + /** + * FeatureMonitorJob driftBaseFeatureMonitorJobId. + * @member {number|Long} driftBaseFeatureMonitorJobId + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @instance + */ + FeatureMonitorJob.prototype.driftBaseFeatureMonitorJobId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * FeatureMonitorJob driftBaseSnapshotTime. + * @member {google.protobuf.ITimestamp|null|undefined} driftBaseSnapshotTime + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @instance + */ + FeatureMonitorJob.prototype.driftBaseSnapshotTime = null; + + /** + * FeatureMonitorJob featureSelectionConfig. + * @member {google.cloud.aiplatform.v1beta1.IFeatureSelectionConfig|null|undefined} featureSelectionConfig + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @instance + */ + FeatureMonitorJob.prototype.featureSelectionConfig = null; + + /** + * FeatureMonitorJob triggerType. + * @member {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.FeatureMonitorJobTrigger} triggerType + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @instance + */ + FeatureMonitorJob.prototype.triggerType = 0; + + /** + * Creates a new FeatureMonitorJob instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureMonitorJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureMonitorJob} FeatureMonitorJob instance + */ + FeatureMonitorJob.create = function create(properties) { + return new FeatureMonitorJob(properties); + }; + + /** + * Encodes the specified FeatureMonitorJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitorJob.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureMonitorJob} message FeatureMonitorJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureMonitorJob.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 2, wireType 2 =*/18).fork()).ldelim(); + if (message.finalStatus != null && Object.hasOwnProperty.call(message, "finalStatus")) + $root.google.rpc.Status.encode(message.finalStatus, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.jobSummary != null && Object.hasOwnProperty.call(message, "jobSummary")) + $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary.encode(message.jobSummary, writer.uint32(/* id 4, wireType 2 =*/34).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 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); + if (message.driftBaseFeatureMonitorJobId != null && Object.hasOwnProperty.call(message, "driftBaseFeatureMonitorJobId")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.driftBaseFeatureMonitorJobId); + if (message.driftBaseSnapshotTime != null && Object.hasOwnProperty.call(message, "driftBaseSnapshotTime")) + $root.google.protobuf.Timestamp.encode(message.driftBaseSnapshotTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.featureSelectionConfig != null && Object.hasOwnProperty.call(message, "featureSelectionConfig")) + $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.encode(message.featureSelectionConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.triggerType != null && Object.hasOwnProperty.call(message, "triggerType")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.triggerType); + return writer; + }; + + /** + * Encodes the specified FeatureMonitorJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitorJob.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeatureMonitorJob} message FeatureMonitorJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureMonitorJob.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureMonitorJob message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @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.FeatureMonitorJob} FeatureMonitorJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureMonitorJob.decode = function decode(reader, 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.FeatureMonitorJob(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.finalStatus = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 4: { + message.jobSummary = $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary.decode(reader, reader.uint32()); + break; + } + case 5: { + 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 6: { + message.description = reader.string(); + break; + } + case 7: { + message.driftBaseFeatureMonitorJobId = reader.int64(); + break; + } + case 8: { + message.driftBaseSnapshotTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.featureSelectionConfig = $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.decode(reader, reader.uint32()); + break; + } + case 10: { + message.triggerType = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureMonitorJob message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureMonitorJob} FeatureMonitorJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureMonitorJob.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureMonitorJob message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureMonitorJob.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.finalStatus != null && message.hasOwnProperty("finalStatus")) { + var error = $root.google.rpc.Status.verify(message.finalStatus); + if (error) + return "finalStatus." + error; + } + if (message.jobSummary != null && message.hasOwnProperty("jobSummary")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary.verify(message.jobSummary); + if (error) + return "jobSummary." + 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.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.driftBaseFeatureMonitorJobId != null && message.hasOwnProperty("driftBaseFeatureMonitorJobId")) + if (!$util.isInteger(message.driftBaseFeatureMonitorJobId) && !(message.driftBaseFeatureMonitorJobId && $util.isInteger(message.driftBaseFeatureMonitorJobId.low) && $util.isInteger(message.driftBaseFeatureMonitorJobId.high))) + return "driftBaseFeatureMonitorJobId: integer|Long expected"; + if (message.driftBaseSnapshotTime != null && message.hasOwnProperty("driftBaseSnapshotTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.driftBaseSnapshotTime); + if (error) + return "driftBaseSnapshotTime." + error; + } + if (message.featureSelectionConfig != null && message.hasOwnProperty("featureSelectionConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.verify(message.featureSelectionConfig); + if (error) + return "featureSelectionConfig." + error; + } + if (message.triggerType != null && message.hasOwnProperty("triggerType")) + switch (message.triggerType) { + default: + return "triggerType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a FeatureMonitorJob message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureMonitorJob} FeatureMonitorJob + */ + FeatureMonitorJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitorJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.finalStatus != null) { + if (typeof object.finalStatus !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitorJob.finalStatus: object expected"); + message.finalStatus = $root.google.rpc.Status.fromObject(object.finalStatus); + } + if (object.jobSummary != null) { + if (typeof object.jobSummary !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitorJob.jobSummary: object expected"); + message.jobSummary = $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary.fromObject(object.jobSummary); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitorJob.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.description != null) + message.description = String(object.description); + if (object.driftBaseFeatureMonitorJobId != null) + if ($util.Long) + (message.driftBaseFeatureMonitorJobId = $util.Long.fromValue(object.driftBaseFeatureMonitorJobId)).unsigned = false; + else if (typeof object.driftBaseFeatureMonitorJobId === "string") + message.driftBaseFeatureMonitorJobId = parseInt(object.driftBaseFeatureMonitorJobId, 10); + else if (typeof object.driftBaseFeatureMonitorJobId === "number") + message.driftBaseFeatureMonitorJobId = object.driftBaseFeatureMonitorJobId; + else if (typeof object.driftBaseFeatureMonitorJobId === "object") + message.driftBaseFeatureMonitorJobId = new $util.LongBits(object.driftBaseFeatureMonitorJobId.low >>> 0, object.driftBaseFeatureMonitorJobId.high >>> 0).toNumber(); + if (object.driftBaseSnapshotTime != null) { + if (typeof object.driftBaseSnapshotTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitorJob.driftBaseSnapshotTime: object expected"); + message.driftBaseSnapshotTime = $root.google.protobuf.Timestamp.fromObject(object.driftBaseSnapshotTime); + } + if (object.featureSelectionConfig != null) { + if (typeof object.featureSelectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitorJob.featureSelectionConfig: object expected"); + message.featureSelectionConfig = $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.fromObject(object.featureSelectionConfig); + } + switch (object.triggerType) { + default: + if (typeof object.triggerType === "number") { + message.triggerType = object.triggerType; + break; + } + break; + case "FEATURE_MONITOR_JOB_TRIGGER_UNSPECIFIED": + case 0: + message.triggerType = 0; + break; + case "FEATURE_MONITOR_JOB_TRIGGER_PERIODIC": + case 1: + message.triggerType = 1; + break; + case "FEATURE_MONITOR_JOB_TRIGGER_ON_DEMAND": + case 2: + message.triggerType = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a FeatureMonitorJob message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitorJob} message FeatureMonitorJob + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureMonitorJob.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.finalStatus = null; + object.jobSummary = null; + object.description = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.driftBaseFeatureMonitorJobId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.driftBaseFeatureMonitorJobId = options.longs === String ? "0" : 0; + object.driftBaseSnapshotTime = null; + object.featureSelectionConfig = null; + object.triggerType = options.enums === String ? "FEATURE_MONITOR_JOB_TRIGGER_UNSPECIFIED" : 0; + } + 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.finalStatus != null && message.hasOwnProperty("finalStatus")) + object.finalStatus = $root.google.rpc.Status.toObject(message.finalStatus, options); + if (message.jobSummary != null && message.hasOwnProperty("jobSummary")) + object.jobSummary = $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary.toObject(message.jobSummary, 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.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.driftBaseFeatureMonitorJobId != null && message.hasOwnProperty("driftBaseFeatureMonitorJobId")) + if (typeof message.driftBaseFeatureMonitorJobId === "number") + object.driftBaseFeatureMonitorJobId = options.longs === String ? String(message.driftBaseFeatureMonitorJobId) : message.driftBaseFeatureMonitorJobId; + else + object.driftBaseFeatureMonitorJobId = options.longs === String ? $util.Long.prototype.toString.call(message.driftBaseFeatureMonitorJobId) : options.longs === Number ? new $util.LongBits(message.driftBaseFeatureMonitorJobId.low >>> 0, message.driftBaseFeatureMonitorJobId.high >>> 0).toNumber() : message.driftBaseFeatureMonitorJobId; + if (message.driftBaseSnapshotTime != null && message.hasOwnProperty("driftBaseSnapshotTime")) + object.driftBaseSnapshotTime = $root.google.protobuf.Timestamp.toObject(message.driftBaseSnapshotTime, options); + if (message.featureSelectionConfig != null && message.hasOwnProperty("featureSelectionConfig")) + object.featureSelectionConfig = $root.google.cloud.aiplatform.v1beta1.FeatureSelectionConfig.toObject(message.featureSelectionConfig, options); + if (message.triggerType != null && message.hasOwnProperty("triggerType")) + object.triggerType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.FeatureMonitorJobTrigger[message.triggerType] === undefined ? message.triggerType : $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.FeatureMonitorJobTrigger[message.triggerType] : message.triggerType; + return object; + }; + + /** + * Converts this FeatureMonitorJob to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @instance + * @returns {Object.} JSON object + */ + FeatureMonitorJob.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureMonitorJob + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureMonitorJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureMonitorJob"; + }; + + FeatureMonitorJob.JobSummary = (function() { + + /** + * Properties of a JobSummary. + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @interface IJobSummary + * @property {number|Long|null} [totalSlotMs] JobSummary totalSlotMs + * @property {Array.|null} [featureStatsAndAnomalies] JobSummary featureStatsAndAnomalies + */ + + /** + * Constructs a new JobSummary. + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob + * @classdesc Represents a JobSummary. + * @implements IJobSummary + * @constructor + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary=} [properties] Properties to set + */ + function JobSummary(properties) { + this.featureStatsAndAnomalies = []; + 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]]; + } + + /** + * JobSummary totalSlotMs. + * @member {number|Long} totalSlotMs + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @instance + */ + JobSummary.prototype.totalSlotMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * JobSummary featureStatsAndAnomalies. + * @member {Array.} featureStatsAndAnomalies + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @instance + */ + JobSummary.prototype.featureStatsAndAnomalies = $util.emptyArray; + + /** + * Creates a new JobSummary instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary} JobSummary instance + */ + JobSummary.create = function create(properties) { + return new JobSummary(properties); + }; + + /** + * Encodes the specified JobSummary message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary} message JobSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JobSummary.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.totalSlotMs != null && Object.hasOwnProperty.call(message, "totalSlotMs")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.totalSlotMs); + if (message.featureStatsAndAnomalies != null && message.featureStatsAndAnomalies.length) + for (var i = 0; i < message.featureStatsAndAnomalies.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.encode(message.featureStatsAndAnomalies[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified JobSummary message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.IJobSummary} message JobSummary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JobSummary.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a JobSummary message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @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.FeatureMonitorJob.JobSummary} JobSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JobSummary.decode = function decode(reader, 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.FeatureMonitorJob.JobSummary(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.totalSlotMs = reader.int64(); + break; + } + case 2: { + if (!(message.featureStatsAndAnomalies && message.featureStatsAndAnomalies.length)) + message.featureStatsAndAnomalies = []; + message.featureStatsAndAnomalies.push($root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a JobSummary message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary} JobSummary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JobSummary.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a JobSummary message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + JobSummary.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.totalSlotMs != null && message.hasOwnProperty("totalSlotMs")) + if (!$util.isInteger(message.totalSlotMs) && !(message.totalSlotMs && $util.isInteger(message.totalSlotMs.low) && $util.isInteger(message.totalSlotMs.high))) + return "totalSlotMs: integer|Long expected"; + if (message.featureStatsAndAnomalies != null && message.hasOwnProperty("featureStatsAndAnomalies")) { + if (!Array.isArray(message.featureStatsAndAnomalies)) + return "featureStatsAndAnomalies: array expected"; + for (var i = 0; i < message.featureStatsAndAnomalies.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.verify(message.featureStatsAndAnomalies[i]); + if (error) + return "featureStatsAndAnomalies." + error; + } + } + return null; + }; + + /** + * Creates a JobSummary message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary} JobSummary + */ + JobSummary.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary(); + if (object.totalSlotMs != null) + if ($util.Long) + (message.totalSlotMs = $util.Long.fromValue(object.totalSlotMs)).unsigned = false; + else if (typeof object.totalSlotMs === "string") + message.totalSlotMs = parseInt(object.totalSlotMs, 10); + else if (typeof object.totalSlotMs === "number") + message.totalSlotMs = object.totalSlotMs; + else if (typeof object.totalSlotMs === "object") + message.totalSlotMs = new $util.LongBits(object.totalSlotMs.low >>> 0, object.totalSlotMs.high >>> 0).toNumber(); + if (object.featureStatsAndAnomalies) { + if (!Array.isArray(object.featureStatsAndAnomalies)) + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary.featureStatsAndAnomalies: array expected"); + message.featureStatsAndAnomalies = []; + for (var i = 0; i < object.featureStatsAndAnomalies.length; ++i) { + if (typeof object.featureStatsAndAnomalies[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary.featureStatsAndAnomalies: object expected"); + message.featureStatsAndAnomalies[i] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.fromObject(object.featureStatsAndAnomalies[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a JobSummary message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary} message JobSummary + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + JobSummary.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.featureStatsAndAnomalies = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.totalSlotMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.totalSlotMs = options.longs === String ? "0" : 0; + if (message.totalSlotMs != null && message.hasOwnProperty("totalSlotMs")) + if (typeof message.totalSlotMs === "number") + object.totalSlotMs = options.longs === String ? String(message.totalSlotMs) : message.totalSlotMs; + else + object.totalSlotMs = options.longs === String ? $util.Long.prototype.toString.call(message.totalSlotMs) : options.longs === Number ? new $util.LongBits(message.totalSlotMs.low >>> 0, message.totalSlotMs.high >>> 0).toNumber() : message.totalSlotMs; + if (message.featureStatsAndAnomalies && message.featureStatsAndAnomalies.length) { + object.featureStatsAndAnomalies = []; + for (var j = 0; j < message.featureStatsAndAnomalies.length; ++j) + object.featureStatsAndAnomalies[j] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomaly.toObject(message.featureStatsAndAnomalies[j], options); + } + return object; + }; + + /** + * Converts this JobSummary to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @instance + * @returns {Object.} JSON object + */ + JobSummary.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for JobSummary + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + JobSummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureMonitorJob.JobSummary"; + }; + + return JobSummary; + })(); + + /** + * FeatureMonitorJobTrigger enum. + * @name google.cloud.aiplatform.v1beta1.FeatureMonitorJob.FeatureMonitorJobTrigger + * @enum {number} + * @property {number} FEATURE_MONITOR_JOB_TRIGGER_UNSPECIFIED=0 FEATURE_MONITOR_JOB_TRIGGER_UNSPECIFIED value + * @property {number} FEATURE_MONITOR_JOB_TRIGGER_PERIODIC=1 FEATURE_MONITOR_JOB_TRIGGER_PERIODIC value + * @property {number} FEATURE_MONITOR_JOB_TRIGGER_ON_DEMAND=2 FEATURE_MONITOR_JOB_TRIGGER_ON_DEMAND value + */ + FeatureMonitorJob.FeatureMonitorJobTrigger = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FEATURE_MONITOR_JOB_TRIGGER_UNSPECIFIED"] = 0; + values[valuesById[1] = "FEATURE_MONITOR_JOB_TRIGGER_PERIODIC"] = 1; + values[valuesById[2] = "FEATURE_MONITOR_JOB_TRIGGER_ON_DEMAND"] = 2; + return values; + })(); + + return FeatureMonitorJob; + })(); + v1beta1.FeatureOnlineStore = (function() { /** @@ -414480,6 +419496,7 @@ * @property {google.cloud.aiplatform.v1beta1.FeatureView.ISyncConfig|null} [syncConfig] FeatureView syncConfig * @property {google.cloud.aiplatform.v1beta1.FeatureView.IVectorSearchConfig|null} [vectorSearchConfig] FeatureView vectorSearchConfig * @property {google.cloud.aiplatform.v1beta1.FeatureView.IIndexConfig|null} [indexConfig] FeatureView indexConfig + * @property {google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig|null} [optimizedConfig] FeatureView optimizedConfig * @property {google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType|null} [serviceAgentType] FeatureView serviceAgentType * @property {string|null} [serviceAccountEmail] FeatureView serviceAccountEmail * @property {boolean|null} [satisfiesPzs] FeatureView satisfiesPzs @@ -414590,6 +419607,14 @@ */ FeatureView.prototype.indexConfig = null; + /** + * FeatureView optimizedConfig. + * @member {google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig|null|undefined} optimizedConfig + * @memberof google.cloud.aiplatform.v1beta1.FeatureView + * @instance + */ + FeatureView.prototype.optimizedConfig = null; + /** * FeatureView serviceAgentType. * @member {google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType} serviceAgentType @@ -414685,6 +419710,8 @@ writer.uint32(/* id 14, wireType 0 =*/112).int32(message.serviceAgentType); if (message.indexConfig != null && Object.hasOwnProperty.call(message, "indexConfig")) $root.google.cloud.aiplatform.v1beta1.FeatureView.IndexConfig.encode(message.indexConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.optimizedConfig != null && Object.hasOwnProperty.call(message, "optimizedConfig")) + $root.google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig.encode(message.optimizedConfig, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); if (message.vertexRagSource != null && Object.hasOwnProperty.call(message, "vertexRagSource")) $root.google.cloud.aiplatform.v1beta1.FeatureView.VertexRagSource.encode(message.vertexRagSource, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) @@ -414788,6 +419815,10 @@ message.indexConfig = $root.google.cloud.aiplatform.v1beta1.FeatureView.IndexConfig.decode(reader, reader.uint32()); break; } + case 16: { + message.optimizedConfig = $root.google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig.decode(reader, reader.uint32()); + break; + } case 14: { message.serviceAgentType = reader.int32(); break; @@ -414907,6 +419938,11 @@ if (error) return "indexConfig." + error; } + if (message.optimizedConfig != null && message.hasOwnProperty("optimizedConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig.verify(message.optimizedConfig); + if (error) + return "optimizedConfig." + error; + } if (message.serviceAgentType != null && message.hasOwnProperty("serviceAgentType")) switch (message.serviceAgentType) { default: @@ -414991,6 +420027,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureView.indexConfig: object expected"); message.indexConfig = $root.google.cloud.aiplatform.v1beta1.FeatureView.IndexConfig.fromObject(object.indexConfig); } + if (object.optimizedConfig != null) { + if (typeof object.optimizedConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureView.optimizedConfig: object expected"); + message.optimizedConfig = $root.google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig.fromObject(object.optimizedConfig); + } switch (object.serviceAgentType) { default: if (typeof object.serviceAgentType === "number") { @@ -415045,6 +420086,7 @@ object.serviceAccountEmail = ""; object.serviceAgentType = options.enums === String ? "SERVICE_AGENT_TYPE_UNSPECIFIED" : 0; object.indexConfig = null; + object.optimizedConfig = null; object.satisfiesPzs = false; object.satisfiesPzi = false; } @@ -415082,6 +420124,8 @@ object.serviceAgentType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType[message.serviceAgentType] === undefined ? message.serviceAgentType : $root.google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType[message.serviceAgentType] : message.serviceAgentType; if (message.indexConfig != null && message.hasOwnProperty("indexConfig")) object.indexConfig = $root.google.cloud.aiplatform.v1beta1.FeatureView.IndexConfig.toObject(message.indexConfig, options); + if (message.optimizedConfig != null && message.hasOwnProperty("optimizedConfig")) + object.optimizedConfig = $root.google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig.toObject(message.optimizedConfig, options); if (message.vertexRagSource != null && message.hasOwnProperty("vertexRagSource")) { object.vertexRagSource = $root.google.cloud.aiplatform.v1beta1.FeatureView.VertexRagSource.toObject(message.vertexRagSource, options); if (options.oneofs) @@ -418054,6 +423098,214 @@ return VertexRagSource; })(); + FeatureView.OptimizedConfig = (function() { + + /** + * Properties of an OptimizedConfig. + * @memberof google.cloud.aiplatform.v1beta1.FeatureView + * @interface IOptimizedConfig + * @property {google.cloud.aiplatform.v1beta1.IAutomaticResources|null} [automaticResources] OptimizedConfig automaticResources + */ + + /** + * Constructs a new OptimizedConfig. + * @memberof google.cloud.aiplatform.v1beta1.FeatureView + * @classdesc Represents an OptimizedConfig. + * @implements IOptimizedConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig=} [properties] Properties to set + */ + function OptimizedConfig(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]]; + } + + /** + * OptimizedConfig automaticResources. + * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources + * @memberof google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig + * @instance + */ + OptimizedConfig.prototype.automaticResources = null; + + /** + * Creates a new OptimizedConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig} OptimizedConfig instance + */ + OptimizedConfig.create = function create(properties) { + return new OptimizedConfig(properties); + }; + + /** + * Encodes the specified OptimizedConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig} message OptimizedConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OptimizedConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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(); + return writer; + }; + + /** + * Encodes the specified OptimizedConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureView.IOptimizedConfig} message OptimizedConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OptimizedConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OptimizedConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig + * @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.FeatureView.OptimizedConfig} OptimizedConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OptimizedConfig.decode = function decode(reader, 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.FeatureView.OptimizedConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 7: { + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OptimizedConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig} OptimizedConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OptimizedConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OptimizedConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OptimizedConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { + var error = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.verify(message.automaticResources); + if (error) + return "automaticResources." + error; + } + return null; + }; + + /** + * Creates an OptimizedConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig} OptimizedConfig + */ + OptimizedConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig(); + if (object.automaticResources != null) { + if (typeof object.automaticResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig.automaticResources: object expected"); + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.fromObject(object.automaticResources); + } + return message; + }; + + /** + * Creates a plain object from an OptimizedConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig} message OptimizedConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OptimizedConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.automaticResources = null; + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) + object.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.toObject(message.automaticResources, options); + return object; + }; + + /** + * Converts this OptimizedConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig + * @instance + * @returns {Object.} JSON object + */ + OptimizedConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OptimizedConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OptimizedConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureView.OptimizedConfig"; + }; + + return OptimizedConfig; + })(); + /** * ServiceAgentType enum. * @name google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType @@ -430112,6 +435364,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|batchCreateFeatures}. + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @typedef BatchCreateFeaturesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls BatchCreateFeatures. + * @function batchCreateFeatures + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} request BatchCreateFeaturesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeatureRegistryService.BatchCreateFeaturesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.batchCreateFeatures = function batchCreateFeatures(request, callback) { + return this.rpcCall(batchCreateFeatures, $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchCreateFeatures" }); + + /** + * Calls BatchCreateFeatures. + * @function batchCreateFeatures + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} request BatchCreateFeaturesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|getFeature}. * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService @@ -430244,6 +435529,237 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|createFeatureMonitor}. + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @typedef CreateFeatureMonitorCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateFeatureMonitor. + * @function createFeatureMonitor + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest} request CreateFeatureMonitorRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitorCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.createFeatureMonitor = function createFeatureMonitor(request, callback) { + return this.rpcCall(createFeatureMonitor, $root.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateFeatureMonitor" }); + + /** + * Calls CreateFeatureMonitor. + * @function createFeatureMonitor + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest} request CreateFeatureMonitorRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|getFeatureMonitor}. + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @typedef GetFeatureMonitorCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitor} [response] FeatureMonitor + */ + + /** + * Calls GetFeatureMonitor. + * @function getFeatureMonitor + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest} request GetFeatureMonitorRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitorCallback} callback Node-style callback called with the error, if any, and FeatureMonitor + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.getFeatureMonitor = function getFeatureMonitor(request, callback) { + return this.rpcCall(getFeatureMonitor, $root.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest, $root.google.cloud.aiplatform.v1beta1.FeatureMonitor, request, callback); + }, "name", { value: "GetFeatureMonitor" }); + + /** + * Calls GetFeatureMonitor. + * @function getFeatureMonitor + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest} request GetFeatureMonitorRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|listFeatureMonitors}. + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @typedef ListFeatureMonitorsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse} [response] ListFeatureMonitorsResponse + */ + + /** + * Calls ListFeatureMonitors. + * @function listFeatureMonitors + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest} request ListFeatureMonitorsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorsCallback} callback Node-style callback called with the error, if any, and ListFeatureMonitorsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.listFeatureMonitors = function listFeatureMonitors(request, callback) { + return this.rpcCall(listFeatureMonitors, $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest, $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse, request, callback); + }, "name", { value: "ListFeatureMonitors" }); + + /** + * Calls ListFeatureMonitors. + * @function listFeatureMonitors + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest} request ListFeatureMonitorsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|deleteFeatureMonitor}. + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @typedef DeleteFeatureMonitorCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteFeatureMonitor. + * @function deleteFeatureMonitor + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest} request DeleteFeatureMonitorRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeatureMonitorCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.deleteFeatureMonitor = function deleteFeatureMonitor(request, callback) { + return this.rpcCall(deleteFeatureMonitor, $root.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteFeatureMonitor" }); + + /** + * Calls DeleteFeatureMonitor. + * @function deleteFeatureMonitor + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest} request DeleteFeatureMonitorRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|createFeatureMonitorJob}. + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @typedef CreateFeatureMonitorJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitorJob} [response] FeatureMonitorJob + */ + + /** + * Calls CreateFeatureMonitorJob. + * @function createFeatureMonitorJob + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest} request CreateFeatureMonitorJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitorJobCallback} callback Node-style callback called with the error, if any, and FeatureMonitorJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.createFeatureMonitorJob = function createFeatureMonitorJob(request, callback) { + return this.rpcCall(createFeatureMonitorJob, $root.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest, $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob, request, callback); + }, "name", { value: "CreateFeatureMonitorJob" }); + + /** + * Calls CreateFeatureMonitorJob. + * @function createFeatureMonitorJob + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest} request CreateFeatureMonitorJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|getFeatureMonitorJob}. + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @typedef GetFeatureMonitorJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitorJob} [response] FeatureMonitorJob + */ + + /** + * Calls GetFeatureMonitorJob. + * @function getFeatureMonitorJob + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest} request GetFeatureMonitorJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitorJobCallback} callback Node-style callback called with the error, if any, and FeatureMonitorJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.getFeatureMonitorJob = function getFeatureMonitorJob(request, callback) { + return this.rpcCall(getFeatureMonitorJob, $root.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest, $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob, request, callback); + }, "name", { value: "GetFeatureMonitorJob" }); + + /** + * Calls GetFeatureMonitorJob. + * @function getFeatureMonitorJob + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest} request GetFeatureMonitorJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeatureRegistryService|listFeatureMonitorJobs}. + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @typedef ListFeatureMonitorJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse} [response] ListFeatureMonitorJobsResponse + */ + + /** + * Calls ListFeatureMonitorJobs. + * @function listFeatureMonitorJobs + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest} request ListFeatureMonitorJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobsCallback} callback Node-style callback called with the error, if any, and ListFeatureMonitorJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeatureRegistryService.prototype.listFeatureMonitorJobs = function listFeatureMonitorJobs(request, callback) { + return this.rpcCall(listFeatureMonitorJobs, $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse, request, callback); + }, "name", { value: "ListFeatureMonitorJobs" }); + + /** + * Calls ListFeatureMonitorJobs. + * @function listFeatureMonitorJobs + * @memberof google.cloud.aiplatform.v1beta1.FeatureRegistryService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest} request ListFeatureMonitorJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return FeatureRegistryService; })(); @@ -431713,6 +437229,1211 @@ return DeleteFeatureGroupRequest; })(); + v1beta1.CreateFeatureMonitorRequest = (function() { + + /** + * Properties of a CreateFeatureMonitorRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateFeatureMonitorRequest + * @property {string|null} [parent] CreateFeatureMonitorRequest parent + * @property {google.cloud.aiplatform.v1beta1.IFeatureMonitor|null} [featureMonitor] CreateFeatureMonitorRequest featureMonitor + * @property {string|null} [featureMonitorId] CreateFeatureMonitorRequest featureMonitorId + */ + + /** + * Constructs a new CreateFeatureMonitorRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateFeatureMonitorRequest. + * @implements ICreateFeatureMonitorRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest=} [properties] Properties to set + */ + function CreateFeatureMonitorRequest(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]]; + } + + /** + * CreateFeatureMonitorRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @instance + */ + CreateFeatureMonitorRequest.prototype.parent = ""; + + /** + * CreateFeatureMonitorRequest featureMonitor. + * @member {google.cloud.aiplatform.v1beta1.IFeatureMonitor|null|undefined} featureMonitor + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @instance + */ + CreateFeatureMonitorRequest.prototype.featureMonitor = null; + + /** + * CreateFeatureMonitorRequest featureMonitorId. + * @member {string} featureMonitorId + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @instance + */ + CreateFeatureMonitorRequest.prototype.featureMonitorId = ""; + + /** + * Creates a new CreateFeatureMonitorRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest} CreateFeatureMonitorRequest instance + */ + CreateFeatureMonitorRequest.create = function create(properties) { + return new CreateFeatureMonitorRequest(properties); + }; + + /** + * Encodes the specified CreateFeatureMonitorRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest} message CreateFeatureMonitorRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureMonitorRequest.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.featureMonitor != null && Object.hasOwnProperty.call(message, "featureMonitor")) + $root.google.cloud.aiplatform.v1beta1.FeatureMonitor.encode(message.featureMonitor, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featureMonitorId != null && Object.hasOwnProperty.call(message, "featureMonitorId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureMonitorId); + return writer; + }; + + /** + * Encodes the specified CreateFeatureMonitorRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest} message CreateFeatureMonitorRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureMonitorRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateFeatureMonitorRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @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.CreateFeatureMonitorRequest} CreateFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureMonitorRequest.decode = function decode(reader, 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.CreateFeatureMonitorRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.featureMonitor = $root.google.cloud.aiplatform.v1beta1.FeatureMonitor.decode(reader, reader.uint32()); + break; + } + case 3: { + message.featureMonitorId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateFeatureMonitorRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest} CreateFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureMonitorRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateFeatureMonitorRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateFeatureMonitorRequest.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.featureMonitor != null && message.hasOwnProperty("featureMonitor")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureMonitor.verify(message.featureMonitor); + if (error) + return "featureMonitor." + error; + } + if (message.featureMonitorId != null && message.hasOwnProperty("featureMonitorId")) + if (!$util.isString(message.featureMonitorId)) + return "featureMonitorId: string expected"; + return null; + }; + + /** + * Creates a CreateFeatureMonitorRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest} CreateFeatureMonitorRequest + */ + CreateFeatureMonitorRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.featureMonitor != null) { + if (typeof object.featureMonitor !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest.featureMonitor: object expected"); + message.featureMonitor = $root.google.cloud.aiplatform.v1beta1.FeatureMonitor.fromObject(object.featureMonitor); + } + if (object.featureMonitorId != null) + message.featureMonitorId = String(object.featureMonitorId); + return message; + }; + + /** + * Creates a plain object from a CreateFeatureMonitorRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest} message CreateFeatureMonitorRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateFeatureMonitorRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.featureMonitor = null; + object.featureMonitorId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.featureMonitor != null && message.hasOwnProperty("featureMonitor")) + object.featureMonitor = $root.google.cloud.aiplatform.v1beta1.FeatureMonitor.toObject(message.featureMonitor, options); + if (message.featureMonitorId != null && message.hasOwnProperty("featureMonitorId")) + object.featureMonitorId = message.featureMonitorId; + return object; + }; + + /** + * Converts this CreateFeatureMonitorRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @instance + * @returns {Object.} JSON object + */ + CreateFeatureMonitorRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateFeatureMonitorRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateFeatureMonitorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest"; + }; + + return CreateFeatureMonitorRequest; + })(); + + v1beta1.GetFeatureMonitorRequest = (function() { + + /** + * Properties of a GetFeatureMonitorRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetFeatureMonitorRequest + * @property {string|null} [name] GetFeatureMonitorRequest name + */ + + /** + * Constructs a new GetFeatureMonitorRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetFeatureMonitorRequest. + * @implements IGetFeatureMonitorRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest=} [properties] Properties to set + */ + function GetFeatureMonitorRequest(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]]; + } + + /** + * GetFeatureMonitorRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest + * @instance + */ + GetFeatureMonitorRequest.prototype.name = ""; + + /** + * Creates a new GetFeatureMonitorRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest} GetFeatureMonitorRequest instance + */ + GetFeatureMonitorRequest.create = function create(properties) { + return new GetFeatureMonitorRequest(properties); + }; + + /** + * Encodes the specified GetFeatureMonitorRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest} message GetFeatureMonitorRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFeatureMonitorRequest.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 GetFeatureMonitorRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest} message GetFeatureMonitorRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFeatureMonitorRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetFeatureMonitorRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest + * @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.GetFeatureMonitorRequest} GetFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFeatureMonitorRequest.decode = function decode(reader, 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.GetFeatureMonitorRequest(); + 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 GetFeatureMonitorRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest} GetFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFeatureMonitorRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetFeatureMonitorRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetFeatureMonitorRequest.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 GetFeatureMonitorRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest} GetFeatureMonitorRequest + */ + GetFeatureMonitorRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetFeatureMonitorRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest} message GetFeatureMonitorRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFeatureMonitorRequest.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 GetFeatureMonitorRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest + * @instance + * @returns {Object.} JSON object + */ + GetFeatureMonitorRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetFeatureMonitorRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetFeatureMonitorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest"; + }; + + return GetFeatureMonitorRequest; + })(); + + v1beta1.ListFeatureMonitorsRequest = (function() { + + /** + * Properties of a ListFeatureMonitorsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListFeatureMonitorsRequest + * @property {string|null} [parent] ListFeatureMonitorsRequest parent + * @property {string|null} [filter] ListFeatureMonitorsRequest filter + * @property {number|null} [pageSize] ListFeatureMonitorsRequest pageSize + * @property {string|null} [pageToken] ListFeatureMonitorsRequest pageToken + * @property {string|null} [orderBy] ListFeatureMonitorsRequest orderBy + */ + + /** + * Constructs a new ListFeatureMonitorsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListFeatureMonitorsRequest. + * @implements IListFeatureMonitorsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest=} [properties] Properties to set + */ + function ListFeatureMonitorsRequest(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]]; + } + + /** + * ListFeatureMonitorsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @instance + */ + ListFeatureMonitorsRequest.prototype.parent = ""; + + /** + * ListFeatureMonitorsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @instance + */ + ListFeatureMonitorsRequest.prototype.filter = ""; + + /** + * ListFeatureMonitorsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @instance + */ + ListFeatureMonitorsRequest.prototype.pageSize = 0; + + /** + * ListFeatureMonitorsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @instance + */ + ListFeatureMonitorsRequest.prototype.pageToken = ""; + + /** + * ListFeatureMonitorsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @instance + */ + ListFeatureMonitorsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListFeatureMonitorsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest} ListFeatureMonitorsRequest instance + */ + ListFeatureMonitorsRequest.create = function create(properties) { + return new ListFeatureMonitorsRequest(properties); + }; + + /** + * Encodes the specified ListFeatureMonitorsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest} message ListFeatureMonitorsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeatureMonitorsRequest.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 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListFeatureMonitorsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest} message ListFeatureMonitorsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeatureMonitorsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFeatureMonitorsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @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.ListFeatureMonitorsRequest} ListFeatureMonitorsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeatureMonitorsRequest.decode = function decode(reader, 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.ListFeatureMonitorsRequest(); + 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.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListFeatureMonitorsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest} ListFeatureMonitorsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeatureMonitorsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFeatureMonitorsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFeatureMonitorsRequest.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.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; + + /** + * Creates a ListFeatureMonitorsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest} ListFeatureMonitorsRequest + */ + ListFeatureMonitorsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest(); + 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); + return message; + }; + + /** + * Creates a plain object from a ListFeatureMonitorsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest} message ListFeatureMonitorsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFeatureMonitorsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + 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.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; + + /** + * Converts this ListFeatureMonitorsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @instance + * @returns {Object.} JSON object + */ + ListFeatureMonitorsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListFeatureMonitorsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFeatureMonitorsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest"; + }; + + return ListFeatureMonitorsRequest; + })(); + + v1beta1.DeleteFeatureMonitorRequest = (function() { + + /** + * Properties of a DeleteFeatureMonitorRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteFeatureMonitorRequest + * @property {string|null} [name] DeleteFeatureMonitorRequest name + */ + + /** + * Constructs a new DeleteFeatureMonitorRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteFeatureMonitorRequest. + * @implements IDeleteFeatureMonitorRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest=} [properties] Properties to set + */ + function DeleteFeatureMonitorRequest(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]]; + } + + /** + * DeleteFeatureMonitorRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest + * @instance + */ + DeleteFeatureMonitorRequest.prototype.name = ""; + + /** + * Creates a new DeleteFeatureMonitorRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest} DeleteFeatureMonitorRequest instance + */ + DeleteFeatureMonitorRequest.create = function create(properties) { + return new DeleteFeatureMonitorRequest(properties); + }; + + /** + * Encodes the specified DeleteFeatureMonitorRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest} message DeleteFeatureMonitorRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureMonitorRequest.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 DeleteFeatureMonitorRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest} message DeleteFeatureMonitorRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteFeatureMonitorRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteFeatureMonitorRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest + * @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.DeleteFeatureMonitorRequest} DeleteFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureMonitorRequest.decode = function decode(reader, 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.DeleteFeatureMonitorRequest(); + 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 DeleteFeatureMonitorRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest} DeleteFeatureMonitorRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteFeatureMonitorRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteFeatureMonitorRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteFeatureMonitorRequest.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 DeleteFeatureMonitorRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest} DeleteFeatureMonitorRequest + */ + DeleteFeatureMonitorRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteFeatureMonitorRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest} message DeleteFeatureMonitorRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteFeatureMonitorRequest.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 DeleteFeatureMonitorRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteFeatureMonitorRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteFeatureMonitorRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteFeatureMonitorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest"; + }; + + return DeleteFeatureMonitorRequest; + })(); + + v1beta1.ListFeatureMonitorsResponse = (function() { + + /** + * Properties of a ListFeatureMonitorsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListFeatureMonitorsResponse + * @property {Array.|null} [featureMonitors] ListFeatureMonitorsResponse featureMonitors + * @property {string|null} [nextPageToken] ListFeatureMonitorsResponse nextPageToken + */ + + /** + * Constructs a new ListFeatureMonitorsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListFeatureMonitorsResponse. + * @implements IListFeatureMonitorsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse=} [properties] Properties to set + */ + function ListFeatureMonitorsResponse(properties) { + this.featureMonitors = []; + 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]]; + } + + /** + * ListFeatureMonitorsResponse featureMonitors. + * @member {Array.} featureMonitors + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @instance + */ + ListFeatureMonitorsResponse.prototype.featureMonitors = $util.emptyArray; + + /** + * ListFeatureMonitorsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @instance + */ + ListFeatureMonitorsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListFeatureMonitorsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse} ListFeatureMonitorsResponse instance + */ + ListFeatureMonitorsResponse.create = function create(properties) { + return new ListFeatureMonitorsResponse(properties); + }; + + /** + * Encodes the specified ListFeatureMonitorsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse} message ListFeatureMonitorsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeatureMonitorsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.featureMonitors != null && message.featureMonitors.length) + for (var i = 0; i < message.featureMonitors.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FeatureMonitor.encode(message.featureMonitors[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 ListFeatureMonitorsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse} message ListFeatureMonitorsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeatureMonitorsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFeatureMonitorsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @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.ListFeatureMonitorsResponse} ListFeatureMonitorsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeatureMonitorsResponse.decode = function decode(reader, 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.ListFeatureMonitorsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.featureMonitors && message.featureMonitors.length)) + message.featureMonitors = []; + message.featureMonitors.push($root.google.cloud.aiplatform.v1beta1.FeatureMonitor.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListFeatureMonitorsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse} ListFeatureMonitorsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeatureMonitorsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFeatureMonitorsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFeatureMonitorsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.featureMonitors != null && message.hasOwnProperty("featureMonitors")) { + if (!Array.isArray(message.featureMonitors)) + return "featureMonitors: array expected"; + for (var i = 0; i < message.featureMonitors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureMonitor.verify(message.featureMonitors[i]); + if (error) + return "featureMonitors." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListFeatureMonitorsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse} ListFeatureMonitorsResponse + */ + ListFeatureMonitorsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse(); + if (object.featureMonitors) { + if (!Array.isArray(object.featureMonitors)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse.featureMonitors: array expected"); + message.featureMonitors = []; + for (var i = 0; i < object.featureMonitors.length; ++i) { + if (typeof object.featureMonitors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse.featureMonitors: object expected"); + message.featureMonitors[i] = $root.google.cloud.aiplatform.v1beta1.FeatureMonitor.fromObject(object.featureMonitors[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListFeatureMonitorsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse} message ListFeatureMonitorsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFeatureMonitorsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.featureMonitors = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.featureMonitors && message.featureMonitors.length) { + object.featureMonitors = []; + for (var j = 0; j < message.featureMonitors.length; ++j) + object.featureMonitors[j] = $root.google.cloud.aiplatform.v1beta1.FeatureMonitor.toObject(message.featureMonitors[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListFeatureMonitorsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @instance + * @returns {Object.} JSON object + */ + ListFeatureMonitorsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListFeatureMonitorsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFeatureMonitorsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse"; + }; + + return ListFeatureMonitorsResponse; + })(); + v1beta1.CreateFeatureGroupOperationMetadata = (function() { /** @@ -432545,6 +439266,1230 @@ return UpdateFeatureOperationMetadata; })(); + v1beta1.CreateFeatureMonitorOperationMetadata = (function() { + + /** + * Properties of a CreateFeatureMonitorOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateFeatureMonitorOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateFeatureMonitorOperationMetadata genericMetadata + */ + + /** + * Constructs a new CreateFeatureMonitorOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateFeatureMonitorOperationMetadata. + * @implements ICreateFeatureMonitorOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata=} [properties] Properties to set + */ + function CreateFeatureMonitorOperationMetadata(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]]; + } + + /** + * CreateFeatureMonitorOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + * @instance + */ + CreateFeatureMonitorOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new CreateFeatureMonitorOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata} CreateFeatureMonitorOperationMetadata instance + */ + CreateFeatureMonitorOperationMetadata.create = function create(properties) { + return new CreateFeatureMonitorOperationMetadata(properties); + }; + + /** + * Encodes the specified CreateFeatureMonitorOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata} message CreateFeatureMonitorOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureMonitorOperationMetadata.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 CreateFeatureMonitorOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata} message CreateFeatureMonitorOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureMonitorOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateFeatureMonitorOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + * @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.CreateFeatureMonitorOperationMetadata} CreateFeatureMonitorOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureMonitorOperationMetadata.decode = function decode(reader, 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.CreateFeatureMonitorOperationMetadata(); + 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 CreateFeatureMonitorOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata} CreateFeatureMonitorOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureMonitorOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateFeatureMonitorOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateFeatureMonitorOperationMetadata.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 CreateFeatureMonitorOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata} CreateFeatureMonitorOperationMetadata + */ + CreateFeatureMonitorOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a CreateFeatureMonitorOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata} message CreateFeatureMonitorOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateFeatureMonitorOperationMetadata.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 CreateFeatureMonitorOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateFeatureMonitorOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateFeatureMonitorOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateFeatureMonitorOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata"; + }; + + return CreateFeatureMonitorOperationMetadata; + })(); + + v1beta1.CreateFeatureMonitorJobRequest = (function() { + + /** + * Properties of a CreateFeatureMonitorJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateFeatureMonitorJobRequest + * @property {string|null} [parent] CreateFeatureMonitorJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IFeatureMonitorJob|null} [featureMonitorJob] CreateFeatureMonitorJobRequest featureMonitorJob + * @property {number|Long|null} [featureMonitorJobId] CreateFeatureMonitorJobRequest featureMonitorJobId + */ + + /** + * Constructs a new CreateFeatureMonitorJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateFeatureMonitorJobRequest. + * @implements ICreateFeatureMonitorJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest=} [properties] Properties to set + */ + function CreateFeatureMonitorJobRequest(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]]; + } + + /** + * CreateFeatureMonitorJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @instance + */ + CreateFeatureMonitorJobRequest.prototype.parent = ""; + + /** + * CreateFeatureMonitorJobRequest featureMonitorJob. + * @member {google.cloud.aiplatform.v1beta1.IFeatureMonitorJob|null|undefined} featureMonitorJob + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @instance + */ + CreateFeatureMonitorJobRequest.prototype.featureMonitorJob = null; + + /** + * CreateFeatureMonitorJobRequest featureMonitorJobId. + * @member {number|Long} featureMonitorJobId + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @instance + */ + CreateFeatureMonitorJobRequest.prototype.featureMonitorJobId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new CreateFeatureMonitorJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest} CreateFeatureMonitorJobRequest instance + */ + CreateFeatureMonitorJobRequest.create = function create(properties) { + return new CreateFeatureMonitorJobRequest(properties); + }; + + /** + * Encodes the specified CreateFeatureMonitorJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest} message CreateFeatureMonitorJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureMonitorJobRequest.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.featureMonitorJob != null && Object.hasOwnProperty.call(message, "featureMonitorJob")) + $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.encode(message.featureMonitorJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featureMonitorJobId != null && Object.hasOwnProperty.call(message, "featureMonitorJobId")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.featureMonitorJobId); + return writer; + }; + + /** + * Encodes the specified CreateFeatureMonitorJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest} message CreateFeatureMonitorJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureMonitorJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateFeatureMonitorJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @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.CreateFeatureMonitorJobRequest} CreateFeatureMonitorJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureMonitorJobRequest.decode = function decode(reader, 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.CreateFeatureMonitorJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.featureMonitorJob = $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.decode(reader, reader.uint32()); + break; + } + case 3: { + message.featureMonitorJobId = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateFeatureMonitorJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest} CreateFeatureMonitorJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureMonitorJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateFeatureMonitorJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateFeatureMonitorJobRequest.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.featureMonitorJob != null && message.hasOwnProperty("featureMonitorJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.verify(message.featureMonitorJob); + if (error) + return "featureMonitorJob." + error; + } + if (message.featureMonitorJobId != null && message.hasOwnProperty("featureMonitorJobId")) + if (!$util.isInteger(message.featureMonitorJobId) && !(message.featureMonitorJobId && $util.isInteger(message.featureMonitorJobId.low) && $util.isInteger(message.featureMonitorJobId.high))) + return "featureMonitorJobId: integer|Long expected"; + return null; + }; + + /** + * Creates a CreateFeatureMonitorJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest} CreateFeatureMonitorJobRequest + */ + CreateFeatureMonitorJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.featureMonitorJob != null) { + if (typeof object.featureMonitorJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest.featureMonitorJob: object expected"); + message.featureMonitorJob = $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.fromObject(object.featureMonitorJob); + } + if (object.featureMonitorJobId != null) + if ($util.Long) + (message.featureMonitorJobId = $util.Long.fromValue(object.featureMonitorJobId)).unsigned = false; + else if (typeof object.featureMonitorJobId === "string") + message.featureMonitorJobId = parseInt(object.featureMonitorJobId, 10); + else if (typeof object.featureMonitorJobId === "number") + message.featureMonitorJobId = object.featureMonitorJobId; + else if (typeof object.featureMonitorJobId === "object") + message.featureMonitorJobId = new $util.LongBits(object.featureMonitorJobId.low >>> 0, object.featureMonitorJobId.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a CreateFeatureMonitorJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest} message CreateFeatureMonitorJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateFeatureMonitorJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.featureMonitorJob = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.featureMonitorJobId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.featureMonitorJobId = options.longs === String ? "0" : 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.featureMonitorJob != null && message.hasOwnProperty("featureMonitorJob")) + object.featureMonitorJob = $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.toObject(message.featureMonitorJob, options); + if (message.featureMonitorJobId != null && message.hasOwnProperty("featureMonitorJobId")) + if (typeof message.featureMonitorJobId === "number") + object.featureMonitorJobId = options.longs === String ? String(message.featureMonitorJobId) : message.featureMonitorJobId; + else + object.featureMonitorJobId = options.longs === String ? $util.Long.prototype.toString.call(message.featureMonitorJobId) : options.longs === Number ? new $util.LongBits(message.featureMonitorJobId.low >>> 0, message.featureMonitorJobId.high >>> 0).toNumber() : message.featureMonitorJobId; + return object; + }; + + /** + * Converts this CreateFeatureMonitorJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @instance + * @returns {Object.} JSON object + */ + CreateFeatureMonitorJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateFeatureMonitorJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateFeatureMonitorJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest"; + }; + + return CreateFeatureMonitorJobRequest; + })(); + + v1beta1.GetFeatureMonitorJobRequest = (function() { + + /** + * Properties of a GetFeatureMonitorJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetFeatureMonitorJobRequest + * @property {string|null} [name] GetFeatureMonitorJobRequest name + */ + + /** + * Constructs a new GetFeatureMonitorJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetFeatureMonitorJobRequest. + * @implements IGetFeatureMonitorJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest=} [properties] Properties to set + */ + function GetFeatureMonitorJobRequest(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]]; + } + + /** + * GetFeatureMonitorJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest + * @instance + */ + GetFeatureMonitorJobRequest.prototype.name = ""; + + /** + * Creates a new GetFeatureMonitorJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest} GetFeatureMonitorJobRequest instance + */ + GetFeatureMonitorJobRequest.create = function create(properties) { + return new GetFeatureMonitorJobRequest(properties); + }; + + /** + * Encodes the specified GetFeatureMonitorJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest} message GetFeatureMonitorJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFeatureMonitorJobRequest.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 GetFeatureMonitorJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest} message GetFeatureMonitorJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFeatureMonitorJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetFeatureMonitorJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest + * @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.GetFeatureMonitorJobRequest} GetFeatureMonitorJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFeatureMonitorJobRequest.decode = function decode(reader, 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.GetFeatureMonitorJobRequest(); + 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 GetFeatureMonitorJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest} GetFeatureMonitorJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFeatureMonitorJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetFeatureMonitorJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetFeatureMonitorJobRequest.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 GetFeatureMonitorJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest} GetFeatureMonitorJobRequest + */ + GetFeatureMonitorJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetFeatureMonitorJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest} message GetFeatureMonitorJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFeatureMonitorJobRequest.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 GetFeatureMonitorJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest + * @instance + * @returns {Object.} JSON object + */ + GetFeatureMonitorJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetFeatureMonitorJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetFeatureMonitorJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest"; + }; + + return GetFeatureMonitorJobRequest; + })(); + + v1beta1.ListFeatureMonitorJobsRequest = (function() { + + /** + * Properties of a ListFeatureMonitorJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListFeatureMonitorJobsRequest + * @property {string|null} [parent] ListFeatureMonitorJobsRequest parent + * @property {string|null} [filter] ListFeatureMonitorJobsRequest filter + * @property {number|null} [pageSize] ListFeatureMonitorJobsRequest pageSize + * @property {string|null} [pageToken] ListFeatureMonitorJobsRequest pageToken + * @property {string|null} [orderBy] ListFeatureMonitorJobsRequest orderBy + */ + + /** + * Constructs a new ListFeatureMonitorJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListFeatureMonitorJobsRequest. + * @implements IListFeatureMonitorJobsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest=} [properties] Properties to set + */ + function ListFeatureMonitorJobsRequest(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]]; + } + + /** + * ListFeatureMonitorJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @instance + */ + ListFeatureMonitorJobsRequest.prototype.parent = ""; + + /** + * ListFeatureMonitorJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @instance + */ + ListFeatureMonitorJobsRequest.prototype.filter = ""; + + /** + * ListFeatureMonitorJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @instance + */ + ListFeatureMonitorJobsRequest.prototype.pageSize = 0; + + /** + * ListFeatureMonitorJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @instance + */ + ListFeatureMonitorJobsRequest.prototype.pageToken = ""; + + /** + * ListFeatureMonitorJobsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @instance + */ + ListFeatureMonitorJobsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListFeatureMonitorJobsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest} ListFeatureMonitorJobsRequest instance + */ + ListFeatureMonitorJobsRequest.create = function create(properties) { + return new ListFeatureMonitorJobsRequest(properties); + }; + + /** + * Encodes the specified ListFeatureMonitorJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest} message ListFeatureMonitorJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeatureMonitorJobsRequest.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 5, wireType 2 =*/42).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListFeatureMonitorJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest} message ListFeatureMonitorJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeatureMonitorJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFeatureMonitorJobsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @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.ListFeatureMonitorJobsRequest} ListFeatureMonitorJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeatureMonitorJobsRequest.decode = function decode(reader, 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.ListFeatureMonitorJobsRequest(); + 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.orderBy = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListFeatureMonitorJobsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest} ListFeatureMonitorJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeatureMonitorJobsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFeatureMonitorJobsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFeatureMonitorJobsRequest.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.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; + + /** + * Creates a ListFeatureMonitorJobsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest} ListFeatureMonitorJobsRequest + */ + ListFeatureMonitorJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest(); + 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); + return message; + }; + + /** + * Creates a plain object from a ListFeatureMonitorJobsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest} message ListFeatureMonitorJobsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFeatureMonitorJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + 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.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; + + /** + * Converts this ListFeatureMonitorJobsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @instance + * @returns {Object.} JSON object + */ + ListFeatureMonitorJobsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListFeatureMonitorJobsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFeatureMonitorJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest"; + }; + + return ListFeatureMonitorJobsRequest; + })(); + + v1beta1.ListFeatureMonitorJobsResponse = (function() { + + /** + * Properties of a ListFeatureMonitorJobsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListFeatureMonitorJobsResponse + * @property {Array.|null} [featureMonitorJobs] ListFeatureMonitorJobsResponse featureMonitorJobs + * @property {string|null} [nextPageToken] ListFeatureMonitorJobsResponse nextPageToken + */ + + /** + * Constructs a new ListFeatureMonitorJobsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListFeatureMonitorJobsResponse. + * @implements IListFeatureMonitorJobsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse=} [properties] Properties to set + */ + function ListFeatureMonitorJobsResponse(properties) { + this.featureMonitorJobs = []; + 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]]; + } + + /** + * ListFeatureMonitorJobsResponse featureMonitorJobs. + * @member {Array.} featureMonitorJobs + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @instance + */ + ListFeatureMonitorJobsResponse.prototype.featureMonitorJobs = $util.emptyArray; + + /** + * ListFeatureMonitorJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @instance + */ + ListFeatureMonitorJobsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListFeatureMonitorJobsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse} ListFeatureMonitorJobsResponse instance + */ + ListFeatureMonitorJobsResponse.create = function create(properties) { + return new ListFeatureMonitorJobsResponse(properties); + }; + + /** + * Encodes the specified ListFeatureMonitorJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse} message ListFeatureMonitorJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeatureMonitorJobsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.featureMonitorJobs != null && message.featureMonitorJobs.length) + for (var i = 0; i < message.featureMonitorJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.encode(message.featureMonitorJobs[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 ListFeatureMonitorJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse} message ListFeatureMonitorJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeatureMonitorJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListFeatureMonitorJobsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @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.ListFeatureMonitorJobsResponse} ListFeatureMonitorJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeatureMonitorJobsResponse.decode = function decode(reader, 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.ListFeatureMonitorJobsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.featureMonitorJobs && message.featureMonitorJobs.length)) + message.featureMonitorJobs = []; + message.featureMonitorJobs.push($root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListFeatureMonitorJobsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse} ListFeatureMonitorJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListFeatureMonitorJobsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListFeatureMonitorJobsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListFeatureMonitorJobsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.featureMonitorJobs != null && message.hasOwnProperty("featureMonitorJobs")) { + if (!Array.isArray(message.featureMonitorJobs)) + return "featureMonitorJobs: array expected"; + for (var i = 0; i < message.featureMonitorJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.verify(message.featureMonitorJobs[i]); + if (error) + return "featureMonitorJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListFeatureMonitorJobsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse} ListFeatureMonitorJobsResponse + */ + ListFeatureMonitorJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse(); + if (object.featureMonitorJobs) { + if (!Array.isArray(object.featureMonitorJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse.featureMonitorJobs: array expected"); + message.featureMonitorJobs = []; + for (var i = 0; i < object.featureMonitorJobs.length; ++i) { + if (typeof object.featureMonitorJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse.featureMonitorJobs: object expected"); + message.featureMonitorJobs[i] = $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.fromObject(object.featureMonitorJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListFeatureMonitorJobsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse} message ListFeatureMonitorJobsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListFeatureMonitorJobsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.featureMonitorJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.featureMonitorJobs && message.featureMonitorJobs.length) { + object.featureMonitorJobs = []; + for (var j = 0; j < message.featureMonitorJobs.length; ++j) + object.featureMonitorJobs[j] = $root.google.cloud.aiplatform.v1beta1.FeatureMonitorJob.toObject(message.featureMonitorJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListFeatureMonitorJobsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @instance + * @returns {Object.} JSON object + */ + ListFeatureMonitorJobsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListFeatureMonitorJobsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListFeatureMonitorJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse"; + }; + + return ListFeatureMonitorJobsResponse; + })(); + v1beta1.FeaturestoreService = (function() { /** @@ -440732,6 +448677,7 @@ * @memberof google.cloud.aiplatform.v1beta1 * @interface IGetFeatureRequest * @property {string|null} [name] GetFeatureRequest name + * @property {google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec|null} [featureStatsAndAnomalySpec] GetFeatureRequest featureStatsAndAnomalySpec */ /** @@ -440757,6 +448703,14 @@ */ GetFeatureRequest.prototype.name = ""; + /** + * GetFeatureRequest featureStatsAndAnomalySpec. + * @member {google.cloud.aiplatform.v1beta1.IFeatureStatsAndAnomalySpec|null|undefined} featureStatsAndAnomalySpec + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest + * @instance + */ + GetFeatureRequest.prototype.featureStatsAndAnomalySpec = null; + /** * Creates a new GetFeatureRequest instance using the specified properties. * @function create @@ -440783,6 +448737,8 @@ writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.featureStatsAndAnomalySpec != null && Object.hasOwnProperty.call(message, "featureStatsAndAnomalySpec")) + $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec.encode(message.featureStatsAndAnomalySpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -440821,6 +448777,10 @@ message.name = reader.string(); break; } + case 3: { + message.featureStatsAndAnomalySpec = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -440859,6 +448819,11 @@ if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.featureStatsAndAnomalySpec != null && message.hasOwnProperty("featureStatsAndAnomalySpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec.verify(message.featureStatsAndAnomalySpec); + if (error) + return "featureStatsAndAnomalySpec." + error; + } return null; }; @@ -440876,6 +448841,11 @@ var message = new $root.google.cloud.aiplatform.v1beta1.GetFeatureRequest(); if (object.name != null) message.name = String(object.name); + if (object.featureStatsAndAnomalySpec != null) { + if (typeof object.featureStatsAndAnomalySpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GetFeatureRequest.featureStatsAndAnomalySpec: object expected"); + message.featureStatsAndAnomalySpec = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec.fromObject(object.featureStatsAndAnomalySpec); + } return message; }; @@ -440892,10 +448862,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.featureStatsAndAnomalySpec = null; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.featureStatsAndAnomalySpec != null && message.hasOwnProperty("featureStatsAndAnomalySpec")) + object.featureStatsAndAnomalySpec = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec.toObject(message.featureStatsAndAnomalySpec, options); return object; }; @@ -450905,6 +458879,7 @@ * @property {google.cloud.aiplatform.v1beta1.ITuningDataStats|null} [tuningDataStats] TuningJob tuningDataStats * @property {string|null} [pipelineJob] TuningJob pipelineJob * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] TuningJob encryptionSpec + * @property {string|null} [serviceAccount] TuningJob serviceAccount */ /** @@ -451075,6 +459050,14 @@ */ TuningJob.prototype.encryptionSpec = null; + /** + * TuningJob serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1beta1.TuningJob + * @instance + */ + TuningJob.prototype.serviceAccount = ""; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -451163,6 +459146,8 @@ writer.uint32(/* id 18, wireType 2 =*/146).string(message.pipelineJob); if (message.partnerModelTuningSpec != null && Object.hasOwnProperty.call(message, "partnerModelTuningSpec")) $root.google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec.encode(message.partnerModelTuningSpec, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 22, wireType 2 =*/178).string(message.serviceAccount); return writer; }; @@ -451292,6 +459277,10 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 22: { + message.serviceAccount = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -451442,6 +459431,9 @@ if (error) return "encryptionSpec." + error; } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; return null; }; @@ -451587,6 +459579,8 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.TuningJob.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); return message; }; @@ -451620,6 +459614,7 @@ object.tuningDataStats = null; object.encryptionSpec = null; object.pipelineJob = ""; + object.serviceAccount = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -451675,6 +459670,8 @@ if (options.oneofs) object.tuningSpec = "partnerModelTuningSpec"; } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; return object; }; @@ -550414,6 +558411,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.NotebookService|stopNotebookRuntime}. + * @memberof google.cloud.aiplatform.v1beta1.NotebookService + * @typedef StopNotebookRuntimeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls StopNotebookRuntime. + * @function stopNotebookRuntime + * @memberof google.cloud.aiplatform.v1beta1.NotebookService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest} request StopNotebookRuntimeRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.NotebookService.StopNotebookRuntimeCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(NotebookService.prototype.stopNotebookRuntime = function stopNotebookRuntime(request, callback) { + return this.rpcCall(stopNotebookRuntime, $root.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "StopNotebookRuntime" }); + + /** + * Calls StopNotebookRuntime. + * @function stopNotebookRuntime + * @memberof google.cloud.aiplatform.v1beta1.NotebookService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest} request StopNotebookRuntimeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.NotebookService|createNotebookExecutionJob}. * @memberof google.cloud.aiplatform.v1beta1.NotebookService @@ -554951,6 +562981,592 @@ return StartNotebookRuntimeResponse; })(); + v1beta1.StopNotebookRuntimeRequest = (function() { + + /** + * Properties of a StopNotebookRuntimeRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IStopNotebookRuntimeRequest + * @property {string|null} [name] StopNotebookRuntimeRequest name + */ + + /** + * Constructs a new StopNotebookRuntimeRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a StopNotebookRuntimeRequest. + * @implements IStopNotebookRuntimeRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest=} [properties] Properties to set + */ + function StopNotebookRuntimeRequest(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]]; + } + + /** + * StopNotebookRuntimeRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest + * @instance + */ + StopNotebookRuntimeRequest.prototype.name = ""; + + /** + * Creates a new StopNotebookRuntimeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest} StopNotebookRuntimeRequest instance + */ + StopNotebookRuntimeRequest.create = function create(properties) { + return new StopNotebookRuntimeRequest(properties); + }; + + /** + * Encodes the specified StopNotebookRuntimeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest} message StopNotebookRuntimeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopNotebookRuntimeRequest.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 StopNotebookRuntimeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest} message StopNotebookRuntimeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopNotebookRuntimeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StopNotebookRuntimeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest + * @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.StopNotebookRuntimeRequest} StopNotebookRuntimeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopNotebookRuntimeRequest.decode = function decode(reader, 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.StopNotebookRuntimeRequest(); + 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 StopNotebookRuntimeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest} StopNotebookRuntimeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopNotebookRuntimeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StopNotebookRuntimeRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StopNotebookRuntimeRequest.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 StopNotebookRuntimeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest} StopNotebookRuntimeRequest + */ + StopNotebookRuntimeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a StopNotebookRuntimeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest} message StopNotebookRuntimeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StopNotebookRuntimeRequest.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 StopNotebookRuntimeRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest + * @instance + * @returns {Object.} JSON object + */ + StopNotebookRuntimeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StopNotebookRuntimeRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StopNotebookRuntimeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest"; + }; + + return StopNotebookRuntimeRequest; + })(); + + v1beta1.StopNotebookRuntimeOperationMetadata = (function() { + + /** + * Properties of a StopNotebookRuntimeOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IStopNotebookRuntimeOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] StopNotebookRuntimeOperationMetadata genericMetadata + */ + + /** + * Constructs a new StopNotebookRuntimeOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a StopNotebookRuntimeOperationMetadata. + * @implements IStopNotebookRuntimeOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata=} [properties] Properties to set + */ + function StopNotebookRuntimeOperationMetadata(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]]; + } + + /** + * StopNotebookRuntimeOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + * @instance + */ + StopNotebookRuntimeOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new StopNotebookRuntimeOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata} StopNotebookRuntimeOperationMetadata instance + */ + StopNotebookRuntimeOperationMetadata.create = function create(properties) { + return new StopNotebookRuntimeOperationMetadata(properties); + }; + + /** + * Encodes the specified StopNotebookRuntimeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata} message StopNotebookRuntimeOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopNotebookRuntimeOperationMetadata.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 StopNotebookRuntimeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata} message StopNotebookRuntimeOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopNotebookRuntimeOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StopNotebookRuntimeOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + * @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.StopNotebookRuntimeOperationMetadata} StopNotebookRuntimeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopNotebookRuntimeOperationMetadata.decode = function decode(reader, 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.StopNotebookRuntimeOperationMetadata(); + 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 StopNotebookRuntimeOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata} StopNotebookRuntimeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopNotebookRuntimeOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StopNotebookRuntimeOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StopNotebookRuntimeOperationMetadata.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 StopNotebookRuntimeOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata} StopNotebookRuntimeOperationMetadata + */ + StopNotebookRuntimeOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a StopNotebookRuntimeOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata} message StopNotebookRuntimeOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StopNotebookRuntimeOperationMetadata.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 StopNotebookRuntimeOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + StopNotebookRuntimeOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StopNotebookRuntimeOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StopNotebookRuntimeOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata"; + }; + + return StopNotebookRuntimeOperationMetadata; + })(); + + v1beta1.StopNotebookRuntimeResponse = (function() { + + /** + * Properties of a StopNotebookRuntimeResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IStopNotebookRuntimeResponse + */ + + /** + * Constructs a new StopNotebookRuntimeResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a StopNotebookRuntimeResponse. + * @implements IStopNotebookRuntimeResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse=} [properties] Properties to set + */ + function StopNotebookRuntimeResponse(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 StopNotebookRuntimeResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse} StopNotebookRuntimeResponse instance + */ + StopNotebookRuntimeResponse.create = function create(properties) { + return new StopNotebookRuntimeResponse(properties); + }; + + /** + * Encodes the specified StopNotebookRuntimeResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse} message StopNotebookRuntimeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopNotebookRuntimeResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified StopNotebookRuntimeResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse} message StopNotebookRuntimeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopNotebookRuntimeResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StopNotebookRuntimeResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse + * @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.StopNotebookRuntimeResponse} StopNotebookRuntimeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopNotebookRuntimeResponse.decode = function decode(reader, 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.StopNotebookRuntimeResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StopNotebookRuntimeResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse} StopNotebookRuntimeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopNotebookRuntimeResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StopNotebookRuntimeResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StopNotebookRuntimeResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a StopNotebookRuntimeResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse} StopNotebookRuntimeResponse + */ + StopNotebookRuntimeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse) + return object; + return new $root.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse(); + }; + + /** + * Creates a plain object from a StopNotebookRuntimeResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse} message StopNotebookRuntimeResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StopNotebookRuntimeResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this StopNotebookRuntimeResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse + * @instance + * @returns {Object.} JSON object + */ + StopNotebookRuntimeResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StopNotebookRuntimeResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StopNotebookRuntimeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse"; + }; + + return StopNotebookRuntimeResponse; + })(); + v1beta1.CreateNotebookExecutionJobRequest = (function() { /** diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index bb8e89e9a01..f07d2186c45 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -3385,6 +3385,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "response": { + "type": "Schema", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -6347,6 +6354,11 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "systemLabels": { + "keyType": "string", + "type": "string", + "id": 28 } } }, @@ -7246,7 +7258,9 @@ "toolCallValidInput", "toolNameMatchInput", "toolParameterKeyMatchInput", - "toolParameterKvMatchInput" + "toolParameterKvMatchInput", + "cometInput", + "metricxInput" ] } }, @@ -7343,6 +7357,14 @@ "type": "ToolParameterKVMatchInput", "id": 22 }, + "cometInput": { + "type": "CometInput", + "id": 31 + }, + "metricxInput": { + "type": "MetricxInput", + "id": 32 + }, "location": { "type": "string", "id": 1, @@ -7379,7 +7401,9 @@ "toolCallValidResults", "toolNameMatchResults", "toolParameterKeyMatchResults", - "toolParameterKvMatchResults" + "toolParameterKvMatchResults", + "cometResult", + "metricxResult" ] } }, @@ -7475,6 +7499,14 @@ "toolParameterKvMatchResults": { "type": "ToolParameterKVMatchResults", "id": 21 + }, + "cometResult": { + "type": "CometResult", + "id": 29 + }, + "metricxResult": { + "type": "MetricxResult", + "id": 30 } } }, @@ -9931,6 +9963,254 @@ } } }, + "CometInput": { + "fields": { + "metricSpec": { + "type": "CometSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "CometInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CometSpec": { + "oneofs": { + "_version": { + "oneof": [ + "version" + ] + } + }, + "fields": { + "version": { + "type": "CometVersion", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "sourceLanguage": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "targetLanguage": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "CometVersion": { + "values": { + "COMET_VERSION_UNSPECIFIED": 0, + "COMET_22_SRC_REF": 2 + } + } + } + }, + "CometInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_source": { + "oneof": [ + "source" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "source": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + } + } + }, + "CometResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "MetricxInput": { + "fields": { + "metricSpec": { + "type": "MetricxSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "MetricxInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "MetricxSpec": { + "oneofs": { + "_version": { + "oneof": [ + "version" + ] + } + }, + "fields": { + "version": { + "type": "MetricxVersion", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "sourceLanguage": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "targetLanguage": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "MetricxVersion": { + "values": { + "METRICX_VERSION_UNSPECIFIED": 0, + "METRICX_24_REF": 1, + "METRICX_24_SRC": 2, + "METRICX_24_SRC_REF": 3 + } + } + } + }, + "MetricxInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_source": { + "oneof": [ + "source" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "source": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + } + } + }, + "MetricxResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, "Event": { "fields": { "artifact": { @@ -12554,6 +12834,34 @@ } ] }, + "BatchCreateFeatures": { + "requestType": "BatchCreateFeaturesRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/featureGroups/*}/features:batchCreate", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,requests", + "(google.longrunning.operation_info).response_type": "BatchCreateFeaturesResponse", + "(google.longrunning.operation_info).metadata_type": "BatchCreateFeaturesOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/featureGroups/*}/features:batchCreate", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,requests" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "BatchCreateFeaturesResponse", + "metadata_type": "BatchCreateFeaturesOperationMetadata" + } + } + ] + }, "GetFeature": { "requestType": "GetFeatureRequest", "responseType": "Feature", @@ -13886,7 +14194,7 @@ "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" + "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/Feature" } }, "requests": { @@ -14767,6 +15075,10 @@ "encryptionSpec": { "type": "EncryptionSpec", "id": 16 + }, + "serviceAccount": { + "type": "string", + "id": 22 } } }, @@ -39874,6 +40186,11 @@ "fasterDeploymentConfig": { "type": "FasterDeploymentConfig", "id": 23 + }, + "systemLabels": { + "keyType": "string", + "type": "string", + "id": 28 } } }, @@ -44421,6 +44738,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "featureStatsAndAnomaly": { + "rule": "repeated", + "type": "FeatureStatsAndAnomaly", + "id": 13, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "versionColumnName": { "type": "string", "id": 106 @@ -44475,6 +44800,175 @@ } } }, + "FeatureMonitor": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/FeatureMonitor", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}", + "(google.api.resource).plural": "featureMonitors", + "(google.api.resource).singular": "featureMonitor" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IDENTIFIER" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "etag": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "description": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "scheduleConfig": { + "type": "ScheduleConfig", + "id": 7, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureSelectionConfig": { + "type": "FeatureSelectionConfig", + "id": 8, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ScheduleConfig": { + "fields": { + "cron": { + "type": "string", + "id": 1 + } + } + }, + "FeatureSelectionConfig": { + "fields": { + "featureConfigs": { + "rule": "repeated", + "type": "FeatureConfig", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "FeatureConfig": { + "fields": { + "featureId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "driftThreshold": { + "type": "double", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + } + } + }, + "FeatureStatsAndAnomaly": { + "fields": { + "featureId": { + "type": "string", + "id": 1 + }, + "featureStats": { + "type": "google.protobuf.Value", + "id": 2 + }, + "distributionDeviation": { + "type": "double", + "id": 3 + }, + "driftDetectionThreshold": { + "type": "double", + "id": 4 + }, + "driftDetected": { + "type": "bool", + "id": 5 + }, + "statsTime": { + "type": "google.protobuf.Timestamp", + "id": 6 + }, + "featureMonitorJobId": { + "type": "int64", + "id": 7 + }, + "featureMonitorId": { + "type": "string", + "id": 8 + } + } + }, + "FeatureStatsAndAnomalySpec": { + "oneofs": { + "_latestStatsCount": { + "oneof": [ + "latestStatsCount" + ] + } + }, + "fields": { + "latestStatsCount": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "statsTimeRange": { + "type": "google.type.Interval", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "FeatureGroup": { "options": { "(google.api.resource).type": "aiplatform.googleapis.com/FeatureGroup", @@ -44594,6 +45088,115 @@ } } }, + "FeatureMonitorJob": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/FeatureMonitorJob", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}", + "(google.api.resource).plural": "featureMonitorJobs", + "(google.api.resource).singular": "featureMonitorJob" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "IDENTIFIER" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "finalStatus": { + "type": "google.rpc.Status", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "jobSummary": { + "type": "JobSummary", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "description": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "driftBaseFeatureMonitorJobId": { + "type": "int64", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "driftBaseSnapshotTime": { + "type": "google.protobuf.Timestamp", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "featureSelectionConfig": { + "type": "FeatureSelectionConfig", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "triggerType": { + "type": "FeatureMonitorJobTrigger", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "JobSummary": { + "fields": { + "totalSlotMs": { + "type": "int64", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "featureStatsAndAnomalies": { + "rule": "repeated", + "type": "FeatureStatsAndAnomaly", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "FeatureMonitorJobTrigger": { + "values": { + "FEATURE_MONITOR_JOB_TRIGGER_UNSPECIFIED": 0, + "FEATURE_MONITOR_JOB_TRIGGER_PERIODIC": 1, + "FEATURE_MONITOR_JOB_TRIGGER_ON_DEMAND": 2 + } + } + } + }, "FeatureOnlineStore": { "options": { "(google.api.resource).type": "aiplatform.googleapis.com/FeatureOnlineStore", @@ -45505,6 +46108,13 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "optimizedConfig": { + "type": "OptimizedConfig", + "id": 16, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "serviceAgentType": { "type": "ServiceAgentType", "id": 14, @@ -45831,6 +46441,17 @@ } } }, + "OptimizedConfig": { + "fields": { + "automaticResources": { + "type": "AutomaticResources", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, "ServiceAgentType": { "values": { "SERVICE_AGENT_TYPE_UNSPECIFIED": 0, @@ -47063,6 +47684,34 @@ } ] }, + "BatchCreateFeatures": { + "requestType": "BatchCreateFeaturesRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/featureGroups/*}/features:batchCreate", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,requests", + "(google.longrunning.operation_info).response_type": "BatchCreateFeaturesResponse", + "(google.longrunning.operation_info).metadata_type": "BatchCreateFeaturesOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*/featureGroups/*}/features:batchCreate", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,requests" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "BatchCreateFeaturesResponse", + "metadata_type": "BatchCreateFeaturesOperationMetadata" + } + } + ] + }, "GetFeature": { "requestType": "GetFeatureRequest", "responseType": "Feature", @@ -47152,6 +47801,152 @@ } } ] + }, + "CreateFeatureMonitor": { + "requestType": "CreateFeatureMonitorRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/featureGroups/*}/featureMonitors", + "(google.api.http).body": "feature_monitor", + "(google.api.method_signature)": "parent,feature_monitor,feature_monitor_id", + "(google.longrunning.operation_info).response_type": "FeatureMonitor", + "(google.longrunning.operation_info).metadata_type": "CreateFeatureMonitorOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*/featureGroups/*}/featureMonitors", + "body": "feature_monitor" + } + }, + { + "(google.api.method_signature)": "parent,feature_monitor,feature_monitor_id" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "FeatureMonitor", + "metadata_type": "CreateFeatureMonitorOperationMetadata" + } + } + ] + }, + "GetFeatureMonitor": { + "requestType": "GetFeatureMonitorRequest", + "responseType": "FeatureMonitor", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/featureGroups/*/featureMonitors/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/featureGroups/*/featureMonitors/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListFeatureMonitors": { + "requestType": "ListFeatureMonitorsRequest", + "responseType": "ListFeatureMonitorsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/featureGroups/*}/featureMonitors", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/featureGroups/*}/featureMonitors" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteFeatureMonitor": { + "requestType": "DeleteFeatureMonitorRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/featureGroups/*/featureMonitors/*}", + "(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/*/featureGroups/*/featureMonitors/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "CreateFeatureMonitorJob": { + "requestType": "CreateFeatureMonitorJobRequest", + "responseType": "FeatureMonitorJob", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/featureGroups/*/featureMonitors/*}/featureMonitorJobs", + "(google.api.http).body": "feature_monitor_job", + "(google.api.method_signature)": "parent,feature_monitor_job,feature_monitor_job_id" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*/featureGroups/*/featureMonitors/*}/featureMonitorJobs", + "body": "feature_monitor_job" + } + }, + { + "(google.api.method_signature)": "parent,feature_monitor_job,feature_monitor_job_id" + } + ] + }, + "GetFeatureMonitorJob": { + "requestType": "GetFeatureMonitorJobRequest", + "responseType": "FeatureMonitorJob", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/featureGroups/*/featureMonitors/*/featureMonitorJobs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/featureGroups/*/featureMonitors/*/featureMonitorJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListFeatureMonitorJobs": { + "requestType": "ListFeatureMonitorJobsRequest", + "responseType": "ListFeatureMonitorJobsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/featureGroups/*/featureMonitors/*}/featureMonitorJobs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/featureGroups/*/featureMonitors/*}/featureMonitorJobs" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] } } }, @@ -47265,6 +48060,109 @@ } } }, + "CreateFeatureMonitorRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/FeatureMonitor" + } + }, + "featureMonitor": { + "type": "FeatureMonitor", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureMonitorId": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetFeatureMonitorRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureMonitor" + } + } + } + }, + "ListFeatureMonitorsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/FeatureMonitor" + } + }, + "filter": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageSize": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "orderBy": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "DeleteFeatureMonitorRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureMonitor" + } + } + } + }, + "ListFeatureMonitorsResponse": { + "fields": { + "featureMonitors": { + "rule": "repeated", + "type": "FeatureMonitor", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "CreateFeatureGroupOperationMetadata": { "fields": { "genericMetadata": { @@ -47297,6 +48195,105 @@ } } }, + "CreateFeatureMonitorOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "CreateFeatureMonitorJobRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/FeatureMonitorJob" + } + }, + "featureMonitorJob": { + "type": "FeatureMonitorJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureMonitorJobId": { + "type": "int64", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "GetFeatureMonitorJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/FeatureMonitorJob" + } + } + } + }, + "ListFeatureMonitorJobsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/FeatureMonitorJob" + } + }, + "filter": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageSize": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "pageToken": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "orderBy": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ListFeatureMonitorJobsResponse": { + "fields": { + "featureMonitorJobs": { + "rule": "repeated", + "type": "FeatureMonitorJob", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "FeaturestoreService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -48395,7 +49392,7 @@ "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/EntityType" + "(google.api.resource_reference).child_type": "aiplatform.googleapis.com/Feature" } }, "requests": { @@ -48426,6 +49423,13 @@ "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "aiplatform.googleapis.com/Feature" } + }, + "featureStatsAndAnomalySpec": { + "type": "FeatureStatsAndAnomalySpec", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -49496,6 +50500,10 @@ "encryptionSpec": { "type": "EncryptionSpec", "id": 16 + }, + "serviceAccount": { + "type": "string", + "id": 22 } } }, @@ -60697,6 +61705,34 @@ } ] }, + "StopNotebookRuntime": { + "requestType": "StopNotebookRuntimeRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/notebookRuntimes/*}:stop", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "StopNotebookRuntimeResponse", + "(google.longrunning.operation_info).metadata_type": "StopNotebookRuntimeOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{name=projects/*/locations/*/notebookRuntimes/*}:stop", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "StopNotebookRuntimeResponse", + "metadata_type": "StopNotebookRuntimeOperationMetadata" + } + } + ] + }, "CreateNotebookExecutionJob": { "requestType": "CreateNotebookExecutionJobRequest", "responseType": "google.longrunning.Operation", @@ -61116,6 +62152,29 @@ "StartNotebookRuntimeResponse": { "fields": {} }, + "StopNotebookRuntimeRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NotebookRuntime" + } + } + } + }, + "StopNotebookRuntimeOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "StopNotebookRuntimeResponse": { + "fields": {} + }, "CreateNotebookExecutionJobRequest": { "fields": { "parent": { diff --git a/packages/google-cloud-aiplatform/samples/README.md b/packages/google-cloud-aiplatform/samples/README.md index bd6693ca200..87b8ab2ab88 100644 --- a/packages/google-cloud-aiplatform/samples/README.md +++ b/packages/google-cloud-aiplatform/samples/README.md @@ -61,6 +61,7 @@ * [Feature_online_store_admin_service.update_feature_view](#feature_online_store_admin_service.update_feature_view) * [Feature_online_store_service.fetch_feature_values](#feature_online_store_service.fetch_feature_values) * [Feature_online_store_service.search_nearest_entities](#feature_online_store_service.search_nearest_entities) + * [Feature_registry_service.batch_create_features](#feature_registry_service.batch_create_features) * [Feature_registry_service.create_feature](#feature_registry_service.create_feature) * [Feature_registry_service.create_feature_group](#feature_registry_service.create_feature_group) * [Feature_registry_service.delete_feature](#feature_registry_service.delete_feature) @@ -369,13 +370,21 @@ * [Feature_online_store_service.fetch_feature_values](#feature_online_store_service.fetch_feature_values) * [Feature_online_store_service.search_nearest_entities](#feature_online_store_service.search_nearest_entities) * [Feature_online_store_service.streaming_fetch_feature_values](#feature_online_store_service.streaming_fetch_feature_values) + * [Feature_registry_service.batch_create_features](#feature_registry_service.batch_create_features) * [Feature_registry_service.create_feature](#feature_registry_service.create_feature) * [Feature_registry_service.create_feature_group](#feature_registry_service.create_feature_group) + * [Feature_registry_service.create_feature_monitor](#feature_registry_service.create_feature_monitor) + * [Feature_registry_service.create_feature_monitor_job](#feature_registry_service.create_feature_monitor_job) * [Feature_registry_service.delete_feature](#feature_registry_service.delete_feature) * [Feature_registry_service.delete_feature_group](#feature_registry_service.delete_feature_group) + * [Feature_registry_service.delete_feature_monitor](#feature_registry_service.delete_feature_monitor) * [Feature_registry_service.get_feature](#feature_registry_service.get_feature) * [Feature_registry_service.get_feature_group](#feature_registry_service.get_feature_group) + * [Feature_registry_service.get_feature_monitor](#feature_registry_service.get_feature_monitor) + * [Feature_registry_service.get_feature_monitor_job](#feature_registry_service.get_feature_monitor_job) * [Feature_registry_service.list_feature_groups](#feature_registry_service.list_feature_groups) + * [Feature_registry_service.list_feature_monitor_jobs](#feature_registry_service.list_feature_monitor_jobs) + * [Feature_registry_service.list_feature_monitors](#feature_registry_service.list_feature_monitors) * [Feature_registry_service.list_features](#feature_registry_service.list_features) * [Feature_registry_service.update_feature](#feature_registry_service.update_feature) * [Feature_registry_service.update_feature_group](#feature_registry_service.update_feature_group) @@ -545,6 +554,7 @@ * [Notebook_service.list_notebook_runtime_templates](#notebook_service.list_notebook_runtime_templates) * [Notebook_service.list_notebook_runtimes](#notebook_service.list_notebook_runtimes) * [Notebook_service.start_notebook_runtime](#notebook_service.start_notebook_runtime) + * [Notebook_service.stop_notebook_runtime](#notebook_service.stop_notebook_runtime) * [Notebook_service.update_notebook_runtime_template](#notebook_service.update_notebook_runtime_template) * [Notebook_service.upgrade_notebook_runtime](#notebook_service.upgrade_notebook_runtime) * [Persistent_resource_service.create_persistent_resource](#persistent_resource_service.create_persistent_resource) @@ -1504,6 +1514,23 @@ __Usage:__ +### Feature_registry_service.batch_create_features + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.batch_create_features.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/feature_registry_service.batch_create_features.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.batch_create_features.js` + + +----- + + + + ### Feature_registry_service.create_feature View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature.js). @@ -6740,6 +6767,23 @@ __Usage:__ +### Feature_registry_service.batch_create_features + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.batch_create_features.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/feature_registry_service.batch_create_features.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.batch_create_features.js` + + +----- + + + + ### Feature_registry_service.create_feature View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature.js). @@ -6774,6 +6818,40 @@ __Usage:__ +### Feature_registry_service.create_feature_monitor + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor.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/feature_registry_service.create_feature_monitor.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor.js` + + +----- + + + + +### Feature_registry_service.create_feature_monitor_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor_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/feature_registry_service.create_feature_monitor_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor_job.js` + + +----- + + + + ### Feature_registry_service.delete_feature View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.delete_feature.js). @@ -6808,6 +6886,23 @@ __Usage:__ +### Feature_registry_service.delete_feature_monitor + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.delete_feature_monitor.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/feature_registry_service.delete_feature_monitor.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.delete_feature_monitor.js` + + +----- + + + + ### Feature_registry_service.get_feature View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature.js). @@ -6842,6 +6937,40 @@ __Usage:__ +### Feature_registry_service.get_feature_monitor + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor.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/feature_registry_service.get_feature_monitor.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor.js` + + +----- + + + + +### Feature_registry_service.get_feature_monitor_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor_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/feature_registry_service.get_feature_monitor_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor_job.js` + + +----- + + + + ### Feature_registry_service.list_feature_groups View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_groups.js). @@ -6859,6 +6988,40 @@ __Usage:__ +### Feature_registry_service.list_feature_monitor_jobs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitor_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/feature_registry_service.list_feature_monitor_jobs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitor_jobs.js` + + +----- + + + + +### Feature_registry_service.list_feature_monitors + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitors.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/feature_registry_service.list_feature_monitors.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitors.js` + + +----- + + + + ### Feature_registry_service.list_features View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_features.js). @@ -9732,6 +9895,23 @@ __Usage:__ +### Notebook_service.stop_notebook_runtime + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.stop_notebook_runtime.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/notebook_service.stop_notebook_runtime.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.stop_notebook_runtime.js` + + +----- + + + + ### Notebook_service.update_notebook_runtime_template View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.update_notebook_runtime_template.js). diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js b/packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js index 12cb4690525..7ec95ab105a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js @@ -126,6 +126,15 @@ function main(location) { * Input for tool parameter key value match metric. */ // const toolParameterKvMatchInput = {} + /** + * Translation metrics. + * Input for Comet metric. + */ + // const cometInput = {} + /** + * Input for Metricx metric. + */ + // const metricxInput = {} /** * Required. The resource name of the Location to evaluate the instances. * Format: `projects/{project}/locations/{location}` diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.js index 1e757bc52d4..cd0796cc80a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.update_feature_view.js @@ -52,6 +52,7 @@ function main(featureView) { * * `feature_registry_source.feature_groups` * * `sync_config` * * `sync_config.cron` + * * `optimized_config.automatic_resources` */ // const updateMask = {} diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.batch_create_features.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.batch_create_features.js new file mode 100644 index 00000000000..972c759186d --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.batch_create_features.js @@ -0,0 +1,74 @@ +// Copyright 2024 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, requests) { + // [START aiplatform_v1_generated_FeatureRegistryService_BatchCreateFeatures_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 EntityType/FeatureGroup to create the + * batch of Features under. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + // const parent = 'abc123' + /** + * Required. The request message specifying the Features to create. All + * Features must be created under the same parent EntityType / FeatureGroup. + * The `parent` field in each child request message can be omitted. If + * `parent` is set in a child request, then the value must match the `parent` + * value in this request message. + */ + // const requests = [1,2,3,4] + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callBatchCreateFeatures() { + // Construct request + const request = { + parent, + requests, + }; + + // Run request + const [operation] = await aiplatformClient.batchCreateFeatures(request); + const [response] = await operation.promise(); + console.log(response); + } + + callBatchCreateFeatures(); + // [END aiplatform_v1_generated_FeatureRegistryService_BatchCreateFeatures_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/feature_registry_service.create_feature_group.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature_group.js index 412c64c4279..c04a65174ad 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature_group.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.create_feature_group.js @@ -41,7 +41,7 @@ function main(parent, featureGroup, featureGroupId) { /** * Required. The ID to use for this FeatureGroup, which will become the final * component of the FeatureGroup's resource name. - * This value may be up to 60 characters, and valid characters are + * This value may be up to 128 characters, and valid characters are * `[a-z0-9_]`. The first character cannot be a number. * The value must be unique within the project and location. */ diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_feature_groups.js b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_feature_groups.js index 5a8a318fb3c..72354f4d8be 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_feature_groups.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/feature_registry_service.list_feature_groups.js @@ -60,11 +60,11 @@ function main(parent) { // const pageSize = 1234 /** * A page token, received from a previous - * FeatureGroupAdminService.ListFeatureGroups call. - * Provide this to retrieve the subsequent page. + * FeatureRegistryService.ListFeatureGroups google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to - * FeatureGroupAdminService.ListFeatureGroups must - * match the call that provided the page token. + * FeatureRegistryService.ListFeatureGroups google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups + * must match the call that provided the page token. */ // const pageToken = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.batch_create_features.js b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.batch_create_features.js index a22de643299..624ee90ea0d 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.batch_create_features.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/featurestore_service.batch_create_features.js @@ -29,17 +29,18 @@ function main(parent, requests) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the EntityType to create the batch of - * Features under. Format: + * Required. The resource name of the EntityType/FeatureGroup to create the + * batch of Features under. Format: * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` */ // const parent = 'abc123' /** * Required. The request message specifying the Features to create. All - * Features must be created under the same parent EntityType. The `parent` - * field in each child request message can be omitted. If `parent` is set in a - * child request, then the value must match the `parent` value in this request - * message. + * Features must be created under the same parent EntityType / FeatureGroup. + * The `parent` field in each child request message can be omitted. If + * `parent` is set in a child request, then the value must match the `parent` + * value in this request message. */ // const requests = [1,2,3,4] diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/gen_ai_tuning_service.list_tuning_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/gen_ai_tuning_service.list_tuning_jobs.js index 05707847fdc..6b6d5f14c4e 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/gen_ai_tuning_service.list_tuning_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/gen_ai_tuning_service.list_tuning_jobs.js @@ -43,8 +43,9 @@ function main(parent) { // const pageSize = 1234 /** * Optional. The standard list page token. - * Typically obtained via ListTuningJob.next_page_token of the - * previous GenAiTuningService.ListTuningJob call. + * Typically obtained via + * ListTuningJobsResponse.next_page_token google.cloud.aiplatform.v1.ListTuningJobsResponse.next_page_token + * of the previous GenAiTuningService.ListTuningJob call. */ // const pageToken = 'abc123' diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.mutate_deployed_index.js b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.mutate_deployed_index.js index 2377ca3bc16..13bf1c9eee7 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.mutate_deployed_index.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/index_endpoint_service.mutate_deployed_index.js @@ -36,8 +36,10 @@ function main(indexEndpoint, deployedIndex) { // const indexEndpoint = 'abc123' /** * Required. The DeployedIndex to be updated within the IndexEndpoint. - * Currently, the updatable fields are DeployedIndex automatic_resources - * and DeployedIndex dedicated_resources + * Currently, the updatable fields are + * DeployedIndex.automatic_resources google.cloud.aiplatform.v1.DeployedIndex.automatic_resources + * and + * DeployedIndex.dedicated_resources google.cloud.aiplatform.v1.DeployedIndex.dedicated_resources */ // const deployedIndex = {} diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/notebook_service.list_notebook_execution_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/notebook_service.list_notebook_execution_jobs.js index a5686dd92db..5b93a501bc9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/notebook_service.list_notebook_execution_jobs.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/notebook_service.list_notebook_execution_jobs.js @@ -54,7 +54,8 @@ function main(parent) { /** * Optional. The standard list page token. * Typically obtained via - * ListNotebookExecutionJobs.next_page_token of the previous + * ListNotebookExecutionJobsResponse.next_page_token google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.next_page_token + * of the previous * NotebookService.ListNotebookExecutionJobs google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs * call. */ diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/persistent_resource_service.list_persistent_resources.js b/packages/google-cloud-aiplatform/samples/generated/v1/persistent_resource_service.list_persistent_resources.js index c38986dfb2a..d0418cf6fd9 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/persistent_resource_service.list_persistent_resources.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/persistent_resource_service.list_persistent_resources.js @@ -40,8 +40,8 @@ function main(parent) { /** * Optional. The standard list page token. * Typically obtained via - * ListPersistentResourceResponse.next_page_token of the previous - * PersistentResourceService.ListPersistentResource call. + * ListPersistentResourcesResponse.next_page_token google.cloud.aiplatform.v1.ListPersistentResourcesResponse.next_page_token + * of the previous PersistentResourceService.ListPersistentResource call. */ // const pageToken = 'abc123' 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 8f13d7fa239..b0bcdfe49ca 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 @@ -899,7 +899,7 @@ "regionTag": "aiplatform_v1_generated_DatasetService_ListAnnotations_async", "title": "DatasetService listAnnotations Sample", "origin": "API_DEFINITION", - "description": " Lists Annotations belongs to a dataitem", + "description": " Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. It is only used for exporting conversation data to CCAI Insights.", "canonical": true, "file": "dataset_service.list_annotations.js", "language": "JAVASCRIPT", @@ -1610,7 +1610,7 @@ "segments": [ { "start": 25, - "end": 152, + "end": 161, "type": "FULL" } ], @@ -1711,6 +1711,14 @@ "name": "tool_parameter_kv_match_input", "type": ".google.cloud.aiplatform.v1.ToolParameterKVMatchInput" }, + { + "name": "comet_input", + "type": ".google.cloud.aiplatform.v1.CometInput" + }, + { + "name": "metricx_input", + "type": ".google.cloud.aiplatform.v1.MetricxInput" + }, { "name": "location", "type": "TYPE_STRING" @@ -2122,7 +2130,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 77, "type": "FULL" } ], @@ -2707,6 +2715,50 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_FeatureRegistryService_BatchCreateFeatures_async", + "title": "DatasetService batchCreateFeatures Sample", + "origin": "API_DEFINITION", + "description": " Creates a batch of Features in a given FeatureGroup.", + "canonical": true, + "file": "feature_registry_service.batch_create_features.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchCreateFeatures", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.BatchCreateFeatures", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "requests", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "BatchCreateFeatures", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.BatchCreateFeatures", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_FeatureRegistryService_GetFeature_async", "title": "DatasetService getFeature Sample", @@ -3566,7 +3618,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 66, "type": "FULL" } ], @@ -4186,7 +4238,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 71, "type": "FULL" } ], @@ -4271,7 +4323,7 @@ "regionTag": "aiplatform_v1_generated_GenAiTuningService_RebaseTunedModel_async", "title": "DatasetService rebaseTunedModel Sample", "origin": "API_DEFINITION", - "description": " Rebase a TunedModel. Creates a LongRunningOperation that takes a legacy Tuned GenAI model Reference and creates a TuningJob based on newly available model.", + "description": " Rebase a TunedModel.", "canonical": true, "file": "gen_ai_tuning_service.rebase_tuned_model.js", "language": "JAVASCRIPT", @@ -4646,7 +4698,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 65, "type": "FULL" } ], @@ -9910,7 +9962,7 @@ "segments": [ { "start": 25, - "end": 95, + "end": 96, "type": "FULL" } ], @@ -11683,7 +11735,7 @@ "regionTag": "aiplatform_v1_generated_ScheduleService_ResumeSchedule_async", "title": "DatasetService resumeSchedule Sample", "origin": "API_DEFINITION", - "description": " Resumes a paused Schedule to start scheduling new runs. Will mark [Schedule.state][google.cloud.aiplatform.v1.Schedule.state] to 'ACTIVE'. Only paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting from the next execution time after the current time based on the time_specification in the Schedule. If [Schedule.catchUp][] is set up true, all missed runs will be scheduled for backfill first.", + "description": " Resumes a paused Schedule to start scheduling new runs. Will mark [Schedule.state][google.cloud.aiplatform.v1.Schedule.state] to 'ACTIVE'. Only paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting from the next execution time after the current time based on the time_specification in the Schedule. If [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up true, all missed runs will be scheduled for backfill first.", "canonical": true, "file": "schedule_service.resume_schedule.js", "language": "JAVASCRIPT", diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.batch_create_features.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.batch_create_features.js new file mode 100644 index 00000000000..3b512b56302 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.batch_create_features.js @@ -0,0 +1,74 @@ +// Copyright 2024 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, requests) { + // [START aiplatform_v1beta1_generated_FeatureRegistryService_BatchCreateFeatures_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 EntityType/FeatureGroup to create the + * batch of Features under. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + // const parent = 'abc123' + /** + * Required. The request message specifying the Features to create. All + * Features must be created under the same parent EntityType / FeatureGroup. + * The `parent` field in each child request message can be omitted. If + * `parent` is set in a child request, then the value must match the `parent` + * value in this request message. + */ + // const requests = [1,2,3,4] + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callBatchCreateFeatures() { + // Construct request + const request = { + parent, + requests, + }; + + // Run request + const [operation] = await aiplatformClient.batchCreateFeatures(request); + const [response] = await operation.promise(); + console.log(response); + } + + callBatchCreateFeatures(); + // [END aiplatform_v1beta1_generated_FeatureRegistryService_BatchCreateFeatures_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/feature_registry_service.create_feature_group.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_group.js index ec422659716..15773f6a0d0 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_group.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_group.js @@ -41,7 +41,7 @@ function main(parent, featureGroup, featureGroupId) { /** * Required. The ID to use for this FeatureGroup, which will become the final * component of the FeatureGroup's resource name. - * This value may be up to 60 characters, and valid characters are + * This value may be up to 128 characters, and valid characters are * `[a-z0-9_]`. The first character cannot be a number. * The value must be unique within the project and location. */ diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor.js new file mode 100644 index 00000000000..eb34b8be03d --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor.js @@ -0,0 +1,78 @@ +// Copyright 2024 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, featureMonitor, featureMonitorId) { + // [START aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureMonitor_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 FeatureGroup to create FeatureMonitor. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{featuregroup}` + */ + // const parent = 'abc123' + /** + * Required. The Monitor to create. + */ + // const featureMonitor = {} + /** + * Required. The ID to use for this FeatureMonitor, which will become the + * final component of the FeatureGroup's resource name. + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. + * The value must be unique within the FeatureGroup. + */ + // const featureMonitorId = 'abc123' + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callCreateFeatureMonitor() { + // Construct request + const request = { + parent, + featureMonitor, + featureMonitorId, + }; + + // Run request + const [operation] = await aiplatformClient.createFeatureMonitor(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCreateFeatureMonitor(); + // [END aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureMonitor_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/feature_registry_service.create_feature_monitor_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor_job.js new file mode 100644 index 00000000000..e46e041e726 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.create_feature_monitor_job.js @@ -0,0 +1,72 @@ +// Copyright 2024 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, featureMonitorJob) { + // [START aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureMonitorJob_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 FeatureMonitor to create FeatureMonitorJob. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + */ + // const parent = 'abc123' + /** + * Required. The Monitor to create. + */ + // const featureMonitorJob = {} + /** + * Optional. Output only. System-generated ID for feature monitor job. + */ + // const featureMonitorJobId = 1234 + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callCreateFeatureMonitorJob() { + // Construct request + const request = { + parent, + featureMonitorJob, + }; + + // Run request + const response = await aiplatformClient.createFeatureMonitorJob(request); + console.log(response); + } + + callCreateFeatureMonitorJob(); + // [END aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureMonitorJob_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/feature_registry_service.delete_feature_monitor.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.delete_feature_monitor.js new file mode 100644 index 00000000000..850c3be0fc9 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.delete_feature_monitor.js @@ -0,0 +1,64 @@ +// Copyright 2024 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_FeatureRegistryService_DeleteFeatureMonitor_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 FeatureMonitor to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callDeleteFeatureMonitor() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await aiplatformClient.deleteFeatureMonitor(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteFeatureMonitor(); + // [END aiplatform_v1beta1_generated_FeatureRegistryService_DeleteFeatureMonitor_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/feature_registry_service.get_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature.js index 2088ed2f31f..9fffab80f9c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature.js @@ -36,6 +36,12 @@ function main(name) { * `projects/{project}/locations/{location}/featureGroups/{feature_group}` */ // const name = 'abc123' + /** + * Optional. Only applicable for Vertex AI Feature Store. + * If set, retrieves FeatureStatsAndAnomaly generated by FeatureMonitors based + * on this spec. + */ + // const featureStatsAndAnomalySpec = {} // Imports the Aiplatform library const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1beta1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor.js new file mode 100644 index 00000000000..130557d752c --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor.js @@ -0,0 +1,61 @@ +// Copyright 2024 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_FeatureRegistryService_GetFeatureMonitor_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 FeatureMonitor resource. + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callGetFeatureMonitor() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getFeatureMonitor(request); + console.log(response); + } + + callGetFeatureMonitor(); + // [END aiplatform_v1beta1_generated_FeatureRegistryService_GetFeatureMonitor_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/feature_registry_service.get_feature_monitor_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor_job.js new file mode 100644 index 00000000000..ecbd0e1d952 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.get_feature_monitor_job.js @@ -0,0 +1,63 @@ +// Copyright 2024 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_FeatureRegistryService_GetFeatureMonitorJob_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 FeatureMonitorJob resource. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callGetFeatureMonitorJob() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getFeatureMonitorJob(request); + console.log(response); + } + + callGetFeatureMonitorJob(); + // [END aiplatform_v1beta1_generated_FeatureRegistryService_GetFeatureMonitorJob_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/feature_registry_service.list_feature_monitor_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitor_jobs.js new file mode 100644 index 00000000000..db69307dd90 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitor_jobs.js @@ -0,0 +1,97 @@ +// Copyright 2024 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_FeatureRegistryService_ListFeatureMonitorJobs_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 FeatureMonitor to list + * FeatureMonitorJobs. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + */ + // const parent = 'abc123' + /** + * Optional. Lists the FeatureMonitorJobs that match the filter expression. + * The following fields are supported: + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * Examples: + * * `create_time > "2020-01-01"` + * FeatureMonitorJobs created after 2020-01-01. + */ + // const filter = 'abc123' + /** + * Optional. The maximum number of FeatureMonitorJobs to return. The service + * may return fewer than this value. If unspecified, at most 100 + * FeatureMonitorJobs will be returned. The maximum value is 100; any value + * greater than 100 will be coerced to 100. + */ + // const pageSize = 1234 + /** + * Optional. A page token, received from a previous + * FeatureRegistryService.ListFeatureMonitorJobs google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * FeatureRegistryService.ListFeatureMonitorJobs google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported Fields: + * * `create_time` + */ + // const orderBy = 'abc123' + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callListFeatureMonitorJobs() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = aiplatformClient.listFeatureMonitorJobsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListFeatureMonitorJobs(); + // [END aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatureMonitorJobs_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/feature_registry_service.list_feature_monitors.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitors.js new file mode 100644 index 00000000000..1637fcaea60 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/feature_registry_service.list_feature_monitors.js @@ -0,0 +1,105 @@ +// Copyright 2024 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_FeatureRegistryService_ListFeatureMonitors_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 FeatureGroup to list FeatureMonitors. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + */ + // const parent = 'abc123' + /** + * Optional. Lists the FeatureMonitors that match the filter expression. The + * following fields are supported: + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * in RFC 3339 format. + * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * in RFC 3339 format. + * * `labels`: Supports key-value equality and key presence. + * Examples: + * * `create_time > "2020-01-01" OR update_time > "2020-01-01"` + * FeatureMonitors created or updated after 2020-01-01. + * * `labels.env = "prod"` + * FeatureGroups with label "env" set to "prod". + */ + // const filter = 'abc123' + /** + * Optional. The maximum number of FeatureGroups to return. The service may + * return fewer than this value. If unspecified, at most 100 FeatureMonitors + * will be returned. The maximum value is 100; any value greater than 100 will + * be coerced to 100. + */ + // const pageSize = 1234 + /** + * Optional. A page token, received from a previous + * FeatureRegistryService.ListFeatureMonitors google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to + * FeatureRegistryService.ListFeatureMonitors google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported Fields: + * * `create_time` + * * `update_time` + */ + // const orderBy = 'abc123' + + // Imports the Aiplatform library + const {FeatureRegistryServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new FeatureRegistryServiceClient(); + + async function callListFeatureMonitors() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = aiplatformClient.listFeatureMonitorsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListFeatureMonitors(); + // [END aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatureMonitors_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/featurestore_service.batch_create_features.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.batch_create_features.js index 60466483fae..8a41d12ab37 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.batch_create_features.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.batch_create_features.js @@ -29,17 +29,18 @@ function main(parent, requests) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the EntityType to create the batch of - * Features under. Format: + * Required. The resource name of the EntityType/FeatureGroup to create the + * batch of Features under. Format: * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` */ // const parent = 'abc123' /** * Required. The request message specifying the Features to create. All - * Features must be created under the same parent EntityType. The `parent` - * field in each child request message can be omitted. If `parent` is set in a - * child request, then the value must match the `parent` value in this request - * message. + * Features must be created under the same parent EntityType / FeatureGroup. + * The `parent` field in each child request message can be omitted. If + * `parent` is set in a child request, then the value must match the `parent` + * value in this request message. */ // const requests = [1,2,3,4] diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_feature.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_feature.js index fabf9acc41d..38667bee09a 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_feature.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/featurestore_service.get_feature.js @@ -36,6 +36,12 @@ function main(name) { * `projects/{project}/locations/{location}/featureGroups/{feature_group}` */ // const name = 'abc123' + /** + * Optional. Only applicable for Vertex AI Feature Store. + * If set, retrieves FeatureStatsAndAnomaly generated by FeatureMonitors based + * on this spec. + */ + // const featureStatsAndAnomalySpec = {} // Imports the Aiplatform library const {FeaturestoreServiceClient} = require('@google-cloud/aiplatform').v1beta1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.stop_notebook_runtime.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.stop_notebook_runtime.js new file mode 100644 index 00000000000..167357e76a9 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/notebook_service.stop_notebook_runtime.js @@ -0,0 +1,65 @@ +// Copyright 2024 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_NotebookService_StopNotebookRuntime_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 NotebookRuntime resource to be stopped. + * Instead of checking whether the name is in valid NotebookRuntime resource + * name format, directly throw NotFound exception if there is no such + * NotebookRuntime in spanner. + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {NotebookServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new NotebookServiceClient(); + + async function callStopNotebookRuntime() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await aiplatformClient.stopNotebookRuntime(request); + const [response] = await operation.promise(); + console.log(response); + } + + callStopNotebookRuntime(); + // [END aiplatform_v1beta1_generated_NotebookService_StopNotebookRuntime_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 b8dac4b7bc4..b9d4c29ae2d 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 @@ -3119,6 +3119,50 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_BatchCreateFeatures_async", + "title": "DatasetService batchCreateFeatures Sample", + "origin": "API_DEFINITION", + "description": " Creates a batch of Features in a given FeatureGroup.", + "canonical": true, + "file": "feature_registry_service.batch_create_features.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 66, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchCreateFeatures", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.BatchCreateFeatures", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "requests", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "BatchCreateFeatures", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.BatchCreateFeatures", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_GetFeature_async", "title": "DatasetService getFeature Sample", @@ -3130,7 +3174,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 63, "type": "FULL" } ], @@ -3142,6 +3186,10 @@ { "name": "name", "type": "TYPE_STRING" + }, + { + "name": "feature_stats_and_anomaly_spec", + "type": ".google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec" } ], "resultType": ".google.cloud.aiplatform.v1beta1.Feature", @@ -3307,6 +3355,334 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureMonitor_async", + "title": "DatasetService createFeatureMonitor Sample", + "origin": "API_DEFINITION", + "description": " Creates a new FeatureMonitor in a given project, location and FeatureGroup.", + "canonical": true, + "file": "feature_registry_service.create_feature_monitor.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateFeatureMonitor", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitor", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "feature_monitor", + "type": ".google.cloud.aiplatform.v1beta1.FeatureMonitor" + }, + { + "name": "feature_monitor_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "CreateFeatureMonitor", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitor", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_GetFeatureMonitor_async", + "title": "DatasetService getFeatureMonitor Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single FeatureMonitor.", + "canonical": true, + "file": "feature_registry_service.get_feature_monitor.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetFeatureMonitor", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitor", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.FeatureMonitor", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "GetFeatureMonitor", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitor", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatureMonitors_async", + "title": "DatasetService listFeatureMonitors Sample", + "origin": "API_DEFINITION", + "description": " Lists FeatureGroups in a given project and location.", + "canonical": true, + "file": "feature_registry_service.list_feature_monitors.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 97, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListFeatureMonitors", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors", + "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": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "ListFeatureMonitors", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_DeleteFeatureMonitor_async", + "title": "DatasetService deleteFeatureMonitor Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single FeatureMonitor.", + "canonical": true, + "file": "feature_registry_service.delete_feature_monitor.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteFeatureMonitor", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeatureMonitor", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "DeleteFeatureMonitor", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeatureMonitor", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureMonitorJob_async", + "title": "DatasetService createFeatureMonitorJob Sample", + "origin": "API_DEFINITION", + "description": " Creates a new feature monitor job.", + "canonical": true, + "file": "feature_registry_service.create_feature_monitor_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateFeatureMonitorJob", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitorJob", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "feature_monitor_job", + "type": ".google.cloud.aiplatform.v1beta1.FeatureMonitorJob" + }, + { + "name": "feature_monitor_job_id", + "type": "TYPE_INT64" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.FeatureMonitorJob", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "CreateFeatureMonitorJob", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitorJob", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_GetFeatureMonitorJob_async", + "title": "DatasetService getFeatureMonitorJob Sample", + "origin": "API_DEFINITION", + "description": " Get a feature monitor job.", + "canonical": true, + "file": "feature_registry_service.get_feature_monitor_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetFeatureMonitorJob", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitorJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.FeatureMonitorJob", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "GetFeatureMonitorJob", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitorJob", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatureMonitorJobs_async", + "title": "DatasetService listFeatureMonitorJobs Sample", + "origin": "API_DEFINITION", + "description": " List feature monitor jobs.", + "canonical": true, + "file": "feature_registry_service.list_feature_monitor_jobs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 89, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListFeatureMonitorJobs", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs", + "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": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse", + "client": { + "shortName": "FeatureRegistryServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" + }, + "method": { + "shortName": "ListFeatureMonitorJobs", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs", + "service": { + "shortName": "FeatureRegistryService", + "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_FeaturestoreOnlineServingService_ReadFeatureValues_async", "title": "DatasetService readFeatureValues Sample", @@ -3978,7 +4354,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 66, "type": "FULL" } ], @@ -4022,7 +4398,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 63, "type": "FULL" } ], @@ -4034,6 +4410,10 @@ { "name": "name", "type": "TYPE_STRING" + }, + { + "name": "feature_stats_and_anomaly_spec", + "type": ".google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec" } ], "resultType": ".google.cloud.aiplatform.v1beta1.Feature", @@ -10927,6 +11307,46 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_NotebookService_StopNotebookRuntime_async", + "title": "DatasetService stopNotebookRuntime Sample", + "origin": "API_DEFINITION", + "description": " Stops a NotebookRuntime.", + "canonical": true, + "file": "notebook_service.stop_notebook_runtime.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "StopNotebookRuntime", + "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.StopNotebookRuntime", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "NotebookServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" + }, + "method": { + "shortName": "StopNotebookRuntime", + "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.StopNotebookRuntime", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_NotebookService_CreateNotebookExecutionJob_async", "title": "DatasetService createNotebookExecutionJob 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 5aea5891281..24e6ac40cce 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts @@ -5071,6 +5071,8 @@ export class DatasetServiceClient { } /** * Lists Annotations belongs to a dataitem + * This RPC is only available in InternalDatasetService. It is only used for + * exporting conversation data to CCAI Insights. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-aiplatform/src/v1/evaluation_service_client.ts b/packages/google-cloud-aiplatform/src/v1/evaluation_service_client.ts index 6780599c07c..428eb7fcc59 100644 --- a/packages/google-cloud-aiplatform/src/v1/evaluation_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/evaluation_service_client.ts @@ -588,6 +588,11 @@ export class EvaluationServiceClient { * Input for tool parameter key match metric. * @param {google.cloud.aiplatform.v1.ToolParameterKVMatchInput} request.toolParameterKvMatchInput * Input for tool parameter key value match metric. + * @param {google.cloud.aiplatform.v1.CometInput} request.cometInput + * Translation metrics. + * Input for Comet metric. + * @param {google.cloud.aiplatform.v1.MetricxInput} request.metricxInput + * Input for Metricx metric. * @param {string} request.location * Required. The resource name of the Location to evaluate the instances. * Format: `projects/{project}/locations/{location}` diff --git a/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts index e2752aee971..e6142df7f5e 100644 --- a/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts @@ -3204,6 +3204,7 @@ export class FeatureOnlineStoreAdminServiceClient { * * `feature_registry_source.feature_groups` * * `sync_config` * * `sync_config.cron` + * * `optimized_config.automatic_resources` * @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. diff --git a/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts index 37f7140f773..efba5097f0a 100644 --- a/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts @@ -1949,6 +1949,12 @@ export class FeatureRegistryServiceClient { const createFeatureMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata' ) as gax.protobuf.Type; + const batchCreateFeaturesResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse' + ) as gax.protobuf.Type; + const batchCreateFeaturesMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata' + ) as gax.protobuf.Type; const updateFeatureResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.Feature' ) as gax.protobuf.Type; @@ -1983,6 +1989,11 @@ export class FeatureRegistryServiceClient { createFeatureResponse.decode.bind(createFeatureResponse), createFeatureMetadata.decode.bind(createFeatureMetadata) ), + batchCreateFeatures: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + batchCreateFeaturesResponse.decode.bind(batchCreateFeaturesResponse), + batchCreateFeaturesMetadata.decode.bind(batchCreateFeaturesMetadata) + ), updateFeature: new this._gaxModule.LongrunningDescriptor( this.operationsClient, updateFeatureResponse.decode.bind(updateFeatureResponse), @@ -2052,6 +2063,7 @@ export class FeatureRegistryServiceClient { 'updateFeatureGroup', 'deleteFeatureGroup', 'createFeature', + 'batchCreateFeatures', 'getFeature', 'listFeatures', 'updateFeature', @@ -2367,7 +2379,7 @@ export class FeatureRegistryServiceClient { * Required. The ID to use for this FeatureGroup, which will become the final * component of the FeatureGroup's resource name. * - * This value may be up to 60 characters, and valid characters are + * This value may be up to 128 characters, and valid characters are * `[a-z0-9_]`. The first character cannot be a number. * * The value must be unique within the project and location. @@ -2945,6 +2957,151 @@ export class FeatureRegistryServiceClient { protos.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata >; } + /** + * Creates a batch of Features in a given FeatureGroup. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the EntityType/FeatureGroup to create the + * batch of Features under. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param {number[]} request.requests + * Required. The request message specifying the Features to create. All + * Features must be created under the same parent EntityType / FeatureGroup. + * The `parent` field in each child request message can be omitted. If + * `parent` is set in a child request, then the value must match the `parent` + * value in this request message. + * @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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/feature_registry_service.batch_create_features.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_BatchCreateFeatures_async + */ + batchCreateFeatures( + request?: protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + batchCreateFeatures( + request: protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + batchCreateFeatures( + request: protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + batchCreateFeatures( + request?: protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata + >, + 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.batchCreateFeatures(request, options, callback); + } + /** + * Check the status of the long running operation returned by `batchCreateFeatures()`. + * @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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1/feature_registry_service.batch_create_features.js + * region_tag:aiplatform_v1_generated_FeatureRegistryService_BatchCreateFeatures_async + */ + async checkBatchCreateFeaturesProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + > + > { + 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.batchCreateFeatures, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata + >; + } /** * Updates the parameters of a single Feature. * @@ -3273,12 +3430,12 @@ export class FeatureRegistryServiceClient { * coerced to 100. * @param {string} request.pageToken * A page token, received from a previous - * {@link protos.|FeatureGroupAdminService.ListFeatureGroups} call. - * Provide this to retrieve the subsequent page. + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups|FeatureRegistryService.ListFeatureGroups} + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * {@link protos.|FeatureGroupAdminService.ListFeatureGroups} must - * match the call that provided the page token. + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups|FeatureRegistryService.ListFeatureGroups} + * must match the call that provided the page token. * @param {string} request.orderBy * A comma-separated list of fields to order by, sorted in ascending order. * Use "desc" after a field name for descending. @@ -3406,12 +3563,12 @@ export class FeatureRegistryServiceClient { * coerced to 100. * @param {string} request.pageToken * A page token, received from a previous - * {@link protos.|FeatureGroupAdminService.ListFeatureGroups} call. - * Provide this to retrieve the subsequent page. + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups|FeatureRegistryService.ListFeatureGroups} + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * {@link protos.|FeatureGroupAdminService.ListFeatureGroups} must - * match the call that provided the page token. + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups|FeatureRegistryService.ListFeatureGroups} + * must match the call that provided the page token. * @param {string} request.orderBy * A comma-separated list of fields to order by, sorted in ascending order. * Use "desc" after a field name for descending. @@ -3487,12 +3644,12 @@ export class FeatureRegistryServiceClient { * coerced to 100. * @param {string} request.pageToken * A page token, received from a previous - * {@link protos.|FeatureGroupAdminService.ListFeatureGroups} call. - * Provide this to retrieve the subsequent page. + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups|FeatureRegistryService.ListFeatureGroups} + * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * {@link protos.|FeatureGroupAdminService.ListFeatureGroups} must - * match the call that provided the page token. + * {@link protos.google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups|FeatureRegistryService.ListFeatureGroups} + * must match the call that provided the page token. * @param {string} request.orderBy * A comma-separated list of fields to order by, sorted in ascending order. * Use "desc" after a field name for descending. diff --git a/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client_config.json index 401f5d2edd8..ffdeb62d209 100644 --- a/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client_config.json @@ -44,6 +44,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "BatchCreateFeatures": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "GetFeature": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" 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 a9a1a691e06..1d81684feea 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts @@ -3644,15 +3644,16 @@ export class FeaturestoreServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the EntityType to create the batch of - * Features under. Format: + * Required. The resource name of the EntityType/FeatureGroup to create the + * batch of Features under. Format: * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @param {number[]} request.requests * Required. The request message specifying the Features to create. All - * Features must be created under the same parent EntityType. The `parent` - * field in each child request message can be omitted. If `parent` is set in a - * child request, then the value must match the `parent` value in this request - * message. + * Features must be created under the same parent EntityType / FeatureGroup. + * The `parent` field in each child request message can be omitted. If + * `parent` is set in a child request, then the value must match the `parent` + * value in this request message. * @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. diff --git a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json index b96bedd2afc..74b1ace5538 100644 --- a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json @@ -662,6 +662,11 @@ "createFeature" ] }, + "BatchCreateFeatures": { + "methods": [ + "batchCreateFeatures" + ] + }, "UpdateFeature": { "methods": [ "updateFeature" @@ -721,6 +726,11 @@ "createFeature" ] }, + "BatchCreateFeatures": { + "methods": [ + "batchCreateFeatures" + ] + }, "UpdateFeature": { "methods": [ "updateFeature" diff --git a/packages/google-cloud-aiplatform/src/v1/gen_ai_tuning_service_client.ts b/packages/google-cloud-aiplatform/src/v1/gen_ai_tuning_service_client.ts index 07f70b0768d..e21fc8b2101 100644 --- a/packages/google-cloud-aiplatform/src/v1/gen_ai_tuning_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/gen_ai_tuning_service_client.ts @@ -2386,8 +2386,6 @@ export class GenAiTuningServiceClient { /** * Rebase a TunedModel. - * Creates a LongRunningOperation that takes a legacy Tuned GenAI model - * Reference and creates a TuningJob based on newly available model. * * @param {Object} request * The request object that will be sent. @@ -2548,8 +2546,9 @@ export class GenAiTuningServiceClient { * Optional. The standard list page size. * @param {string} [request.pageToken] * Optional. The standard list page token. - * Typically obtained via {@link protos.|ListTuningJob.next_page_token} of the - * previous GenAiTuningService.ListTuningJob][] call. + * Typically obtained via + * {@link protos.google.cloud.aiplatform.v1.ListTuningJobsResponse.next_page_token|ListTuningJobsResponse.next_page_token} + * of the previous GenAiTuningService.ListTuningJob][] call. * @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. @@ -2650,8 +2649,9 @@ export class GenAiTuningServiceClient { * Optional. The standard list page size. * @param {string} [request.pageToken] * Optional. The standard list page token. - * Typically obtained via {@link protos.|ListTuningJob.next_page_token} of the - * previous GenAiTuningService.ListTuningJob][] call. + * Typically obtained via + * {@link protos.google.cloud.aiplatform.v1.ListTuningJobsResponse.next_page_token|ListTuningJobsResponse.next_page_token} + * of the previous GenAiTuningService.ListTuningJob][] call. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -2700,8 +2700,9 @@ export class GenAiTuningServiceClient { * Optional. The standard list page size. * @param {string} [request.pageToken] * Optional. The standard list page token. - * Typically obtained via {@link protos.|ListTuningJob.next_page_token} of the - * previous GenAiTuningService.ListTuningJob][] call. + * Typically obtained via + * {@link protos.google.cloud.aiplatform.v1.ListTuningJobsResponse.next_page_token|ListTuningJobsResponse.next_page_token} + * of the previous GenAiTuningService.ListTuningJob][] call. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} 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 8698c91afce..05af019f8e1 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 @@ -2907,8 +2907,10 @@ export class IndexEndpointServiceClient { * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` * @param {google.cloud.aiplatform.v1.DeployedIndex} request.deployedIndex * Required. The DeployedIndex to be updated within the IndexEndpoint. - * Currently, the updatable fields are {@link protos.automatic_resources|DeployedIndex} - * and {@link protos.dedicated_resources|DeployedIndex} + * Currently, the updatable fields are + * {@link protos.google.cloud.aiplatform.v1.DeployedIndex.automatic_resources|DeployedIndex.automatic_resources} + * and + * {@link protos.google.cloud.aiplatform.v1.DeployedIndex.dedicated_resources|DeployedIndex.dedicated_resources} * @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. diff --git a/packages/google-cloud-aiplatform/src/v1/notebook_service_client.ts b/packages/google-cloud-aiplatform/src/v1/notebook_service_client.ts index f1d18b49638..5fb520b40d8 100644 --- a/packages/google-cloud-aiplatform/src/v1/notebook_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/notebook_service_client.ts @@ -4604,7 +4604,8 @@ export class NotebookServiceClient { * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via - * {@link protos.|ListNotebookExecutionJobs.next_page_token} of the previous + * {@link protos.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.next_page_token|ListNotebookExecutionJobsResponse.next_page_token} + * of the previous * {@link protos.google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs|NotebookService.ListNotebookExecutionJobs} * call. * @param {string} [request.orderBy] @@ -4735,7 +4736,8 @@ export class NotebookServiceClient { * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via - * {@link protos.|ListNotebookExecutionJobs.next_page_token} of the previous + * {@link protos.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.next_page_token|ListNotebookExecutionJobsResponse.next_page_token} + * of the previous * {@link protos.google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs|NotebookService.ListNotebookExecutionJobs} * call. * @param {string} [request.orderBy] @@ -4810,7 +4812,8 @@ export class NotebookServiceClient { * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via - * {@link protos.|ListNotebookExecutionJobs.next_page_token} of the previous + * {@link protos.google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse.next_page_token|ListNotebookExecutionJobsResponse.next_page_token} + * of the previous * {@link protos.google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs|NotebookService.ListNotebookExecutionJobs} * call. * @param {string} [request.orderBy] diff --git a/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_client.ts b/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_client.ts index fe5c5bd2782..1dfa49efbfe 100644 --- a/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_client.ts @@ -2846,8 +2846,8 @@ export class PersistentResourceServiceClient { * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via - * {@link protos.|ListPersistentResourceResponse.next_page_token} of the previous - * {@link protos.|PersistentResourceService.ListPersistentResource} call. + * {@link protos.google.cloud.aiplatform.v1.ListPersistentResourcesResponse.next_page_token|ListPersistentResourcesResponse.next_page_token} + * of the previous {@link protos.|PersistentResourceService.ListPersistentResource} call. * @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. @@ -2951,8 +2951,8 @@ export class PersistentResourceServiceClient { * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via - * {@link protos.|ListPersistentResourceResponse.next_page_token} of the previous - * {@link protos.|PersistentResourceService.ListPersistentResource} call. + * {@link protos.google.cloud.aiplatform.v1.ListPersistentResourcesResponse.next_page_token|ListPersistentResourcesResponse.next_page_token} + * of the previous {@link protos.|PersistentResourceService.ListPersistentResource} call. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -3000,8 +3000,8 @@ export class PersistentResourceServiceClient { * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via - * {@link protos.|ListPersistentResourceResponse.next_page_token} of the previous - * {@link protos.|PersistentResourceService.ListPersistentResource} call. + * {@link protos.google.cloud.aiplatform.v1.ListPersistentResourcesResponse.next_page_token|ListPersistentResourcesResponse.next_page_token} + * of the previous {@link protos.|PersistentResourceService.ListPersistentResource} call. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts b/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts index 599e1c8c4b9..53f84a1d707 100644 --- a/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts @@ -2386,8 +2386,9 @@ export class ScheduleServiceClient { * * When the Schedule is resumed, new runs will be scheduled starting from the * next execution time after the current time based on the time_specification - * in the Schedule. If {@link protos.|Schedule.catchUp} is set up true, all - * missed runs will be scheduled for backfill first. + * in the Schedule. If + * {@link protos.google.cloud.aiplatform.v1.Schedule.catch_up|Schedule.catch_up} is set up + * true, all missed runs will be scheduled for backfill first. * * @param {Object} request * The request object that will be sent. 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 5b1bd01731d..db7892c4403 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts @@ -262,6 +262,12 @@ export class DatasetServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -6956,6 +6962,174 @@ export class DatasetServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 456a62b7248..a2cb42b6856 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 @@ -263,6 +263,12 @@ export class DeploymentResourcePoolServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -4767,6 +4773,174 @@ export class DeploymentResourcePoolServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 d9be80f93a6..fbafd6c46f5 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts @@ -262,6 +262,12 @@ export class EndpointServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -5175,6 +5181,174 @@ export class EndpointServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_client.ts index 65b36f3087e..934601c3ce5 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_client.ts @@ -257,6 +257,12 @@ export class EvaluationServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -1947,6 +1953,174 @@ export class EvaluationServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_client.ts index c154a1cfc4d..ca217ae8895 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_client.ts @@ -258,6 +258,12 @@ export class ExtensionExecutionServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -2012,6 +2018,174 @@ export class ExtensionExecutionServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_client.ts index a19a418802f..7374ef86166 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_client.ts @@ -263,6 +263,12 @@ export class ExtensionRegistryServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -4483,6 +4489,174 @@ export class ExtensionRegistryServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_client.ts index ba6da907fd0..3458ab1bc0f 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_client.ts @@ -264,6 +264,12 @@ export class FeatureOnlineStoreAdminServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -6013,6 +6019,174 @@ export class FeatureOnlineStoreAdminServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_client.ts index 026f6811c44..eb09e704d93 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_client.ts @@ -258,6 +258,12 @@ export class FeatureOnlineStoreServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -2059,6 +2065,174 @@ export class FeatureOnlineStoreServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client.ts index 94dee47d828..701258577a1 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client.ts @@ -264,6 +264,12 @@ export class FeatureRegistryServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -413,6 +419,16 @@ export class FeatureRegistryServiceClient { 'nextPageToken', 'features' ), + listFeatureMonitors: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'featureMonitors' + ), + listFeatureMonitorJobs: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'featureMonitorJobs' + ), }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); @@ -2186,6 +2202,12 @@ export class FeatureRegistryServiceClient { const createFeatureMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata' ) as gax.protobuf.Type; + const batchCreateFeaturesResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse' + ) as gax.protobuf.Type; + const batchCreateFeaturesMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata' + ) as gax.protobuf.Type; const updateFeatureResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.Feature' ) as gax.protobuf.Type; @@ -2198,6 +2220,18 @@ export class FeatureRegistryServiceClient { const deleteFeatureMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata' ) as gax.protobuf.Type; + const createFeatureMonitorResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.FeatureMonitor' + ) as gax.protobuf.Type; + const createFeatureMonitorMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata' + ) as gax.protobuf.Type; + const deleteFeatureMonitorResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteFeatureMonitorMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { createFeatureGroup: new this._gaxModule.LongrunningDescriptor( @@ -2220,6 +2254,11 @@ export class FeatureRegistryServiceClient { createFeatureResponse.decode.bind(createFeatureResponse), createFeatureMetadata.decode.bind(createFeatureMetadata) ), + batchCreateFeatures: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + batchCreateFeaturesResponse.decode.bind(batchCreateFeaturesResponse), + batchCreateFeaturesMetadata.decode.bind(batchCreateFeaturesMetadata) + ), updateFeature: new this._gaxModule.LongrunningDescriptor( this.operationsClient, updateFeatureResponse.decode.bind(updateFeatureResponse), @@ -2230,6 +2269,16 @@ export class FeatureRegistryServiceClient { deleteFeatureResponse.decode.bind(deleteFeatureResponse), deleteFeatureMetadata.decode.bind(deleteFeatureMetadata) ), + createFeatureMonitor: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + createFeatureMonitorResponse.decode.bind(createFeatureMonitorResponse), + createFeatureMonitorMetadata.decode.bind(createFeatureMonitorMetadata) + ), + deleteFeatureMonitor: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteFeatureMonitorResponse.decode.bind(deleteFeatureMonitorResponse), + deleteFeatureMonitorMetadata.decode.bind(deleteFeatureMonitorMetadata) + ), }; // Put together the default options sent with requests. @@ -2289,10 +2338,18 @@ export class FeatureRegistryServiceClient { 'updateFeatureGroup', 'deleteFeatureGroup', 'createFeature', + 'batchCreateFeatures', 'getFeature', 'listFeatures', 'updateFeature', 'deleteFeature', + 'createFeatureMonitor', + 'getFeatureMonitor', + 'listFeatureMonitors', + 'deleteFeatureMonitor', + 'createFeatureMonitorJob', + 'getFeatureMonitorJob', + 'listFeatureMonitorJobs', ]; for (const methodName of featureRegistryServiceStubMethods) { const callPromise = this.featureRegistryServiceStub.then( @@ -2517,6 +2574,10 @@ export class FeatureRegistryServiceClient { * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` * Format for feature_group as parent: * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param {google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec} [request.featureStatsAndAnomalySpec] + * Optional. Only applicable for Vertex AI Feature Store. + * If set, retrieves FeatureStatsAndAnomaly generated by FeatureMonitors based + * on this spec. * @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. @@ -2600,6 +2661,306 @@ export class FeatureRegistryServiceClient { this.initialize(); return this.innerApiCalls.getFeature(request, options, callback); } + /** + * Gets details of a single FeatureMonitor. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the FeatureMonitor resource. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.aiplatform.v1beta1.FeatureMonitor|FeatureMonitor}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.get_feature_monitor.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_GetFeatureMonitor_async + */ + getFeatureMonitor( + request?: protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + ( + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest + | undefined + ), + {} | undefined, + ] + >; + getFeatureMonitor( + request: protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureMonitor( + request: protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureMonitor( + request?: protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + ( + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorRequest + | 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.getFeatureMonitor(request, options, callback); + } + /** + * Creates a new feature monitor job. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of FeatureMonitor to create FeatureMonitorJob. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitorJob} request.featureMonitorJob + * Required. The Monitor to create. + * @param {number} [request.featureMonitorJobId] + * Optional. Output only. System-generated ID for feature monitor 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 {@link protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob|FeatureMonitorJob}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.create_feature_monitor_job.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureMonitorJob_async + */ + createFeatureMonitorJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + ( + | protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest + | undefined + ), + {} | undefined, + ] + >; + createFeatureMonitorJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createFeatureMonitorJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createFeatureMonitorJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + ( + | protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorJobRequest + | 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.createFeatureMonitorJob( + request, + options, + callback + ); + } + /** + * Get a feature monitor job. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the FeatureMonitorJob resource. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_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 {@link protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob|FeatureMonitorJob}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.get_feature_monitor_job.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_GetFeatureMonitorJob_async + */ + getFeatureMonitorJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + ( + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest + | undefined + ), + {} | undefined, + ] + >; + getFeatureMonitorJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureMonitorJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getFeatureMonitorJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob, + ( + | protos.google.cloud.aiplatform.v1beta1.IGetFeatureMonitorJobRequest + | 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.getFeatureMonitorJob(request, options, callback); + } /** * Creates a new FeatureGroup in a given project and location. @@ -2616,7 +2977,7 @@ export class FeatureRegistryServiceClient { * Required. The ID to use for this FeatureGroup, which will become the final * component of the FeatureGroup's resource name. * - * This value may be up to 60 characters, and valid characters are + * This value may be up to 128 characters, and valid characters are * `[a-z0-9_]`. The first character cannot be a number. * * The value must be unique within the project and location. @@ -3195,27 +3556,172 @@ export class FeatureRegistryServiceClient { >; } /** - * Updates the parameters of a single Feature. + * Creates a batch of Features in a given FeatureGroup. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.aiplatform.v1beta1.Feature} request.feature - * Required. The Feature's `name` field is used to identify the Feature to be - * updated. - * Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - * @param {google.protobuf.FieldMask} request.updateMask - * Field mask is used to specify the fields to be overwritten in the - * Features 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. - * - * Updatable fields: - * + * @param {string} request.parent + * Required. The resource name of the EntityType/FeatureGroup to create the + * batch of Features under. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param {number[]} request.requests + * Required. The request message specifying the Features to create. All + * Features must be created under the same parent EntityType / FeatureGroup. + * The `parent` field in each child request message can be omitted. If + * `parent` is set in a child request, then the value must match the `parent` + * value in this request message. + * @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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.batch_create_features.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_BatchCreateFeatures_async + */ + batchCreateFeatures( + request?: protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + batchCreateFeatures( + request: protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + batchCreateFeatures( + request: protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + batchCreateFeatures( + request?: protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata + >, + 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.batchCreateFeatures(request, options, callback); + } + /** + * Check the status of the long running operation returned by `batchCreateFeatures()`. + * @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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.batch_create_features.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_BatchCreateFeatures_async + */ + async checkBatchCreateFeaturesProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + > + > { + 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.batchCreateFeatures, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + >; + } + /** + * Updates the parameters of a single Feature. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.aiplatform.v1beta1.Feature} request.feature + * Required. The Feature's `name` field is used to identify the Feature to be + * updated. + * Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * @param {google.protobuf.FieldMask} request.updateMask + * Field mask is used to specify the fields to be overwritten in the + * Features 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. + * + * Updatable fields: + * * * `description` * * `labels` * * `disable_monitoring` (Not supported for FeatureRegistryService Feature) @@ -3489,118 +3995,99 @@ export class FeatureRegistryServiceClient { >; } /** - * Lists FeatureGroups in a given project and location. + * Creates a new FeatureMonitor in a given project, location and FeatureGroup. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list FeatureGroups. + * Required. The resource name of FeatureGroup to create FeatureMonitor. * Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * Lists the FeatureGroups that match the filter expression. The - * following fields are supported: + * `projects/{project}/locations/{location}/featureGroups/{featuregroup}` + * @param {google.cloud.aiplatform.v1beta1.FeatureMonitor} request.featureMonitor + * Required. The Monitor to create. + * @param {string} request.featureMonitorId + * Required. The ID to use for this FeatureMonitor, which will become the + * final component of the FeatureGroup's resource name. * - * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - * Values must be - * in RFC 3339 format. - * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - * Values must be - * in RFC 3339 format. - * * `labels`: Supports key-value equality and key presence. - * - * Examples: - * - * * `create_time > "2020-01-01" OR update_time > "2020-01-01"` - * FeatureGroups created or updated after 2020-01-01. - * * `labels.env = "prod"` - * FeatureGroups with label "env" set to "prod". - * @param {number} request.pageSize - * The maximum number of FeatureGroups to return. The service may return - * fewer than this value. If unspecified, at most 100 FeatureGroups will - * be returned. The maximum value is 100; any value greater than 100 will be - * coerced to 100. - * @param {string} request.pageToken - * A page token, received from a previous - * {@link protos.|FeatureGroupAdminService.ListFeatureGroups} call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to - * {@link protos.|FeatureGroupAdminService.ListFeatureGroups} must - * match the call that provided the page token. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported Fields: + * This value may be up to 60 characters, and valid characters are + * `[a-z0-9_]`. The first character cannot be a number. * - * * `create_time` - * * `update_time` + * The value must be unique within the FeatureGroup. * @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 {@link protos.google.cloud.aiplatform.v1beta1.FeatureGroup|FeatureGroup}. - * 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 `listFeatureGroupsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * 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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.create_feature_monitor.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureMonitor_async */ - listFeatureGroups( - request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, + createFeatureMonitor( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IFeatureGroup[], - protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse, + LROperation< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, ] >; - listFeatureGroups( - request: protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, + createFeatureMonitor( + request: protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest, options: CallOptions, - callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse - | null - | undefined, - protos.google.cloud.aiplatform.v1beta1.IFeatureGroup + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined > ): void; - listFeatureGroups( - request: protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, - callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse - | null - | undefined, - protos.google.cloud.aiplatform.v1beta1.IFeatureGroup + createFeatureMonitor( + request: protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined > ): void; - listFeatureGroups( - request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, + createFeatureMonitor( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorRequest, optionsOrCallback?: | CallOptions - | PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse - | null - | undefined, - protos.google.cloud.aiplatform.v1beta1.IFeatureGroup + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined >, - callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse - | null - | undefined, - protos.google.cloud.aiplatform.v1beta1.IFeatureGroup + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IFeatureGroup[], - protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse, + LROperation< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, ] > | void { request = request || {}; @@ -3619,24 +4106,196 @@ export class FeatureRegistryServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listFeatureGroups(request, options, callback); + return this.innerApiCalls.createFeatureMonitor(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 FeatureGroups. - * Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * Lists the FeatureGroups that match the filter expression. The - * following fields are supported: - * - * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - * Values must be - * in RFC 3339 format. + * Check the status of the long running operation returned by `createFeatureMonitor()`. + * @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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.create_feature_monitor.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureMonitor_async + */ + async checkCreateFeatureMonitorProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1beta1.FeatureMonitor, + protos.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + > + > { + 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.createFeatureMonitor, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1beta1.FeatureMonitor, + protos.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorOperationMetadata + >; + } + /** + * Deletes a single FeatureMonitor. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the FeatureMonitor to be deleted. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + * @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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.delete_feature_monitor.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_DeleteFeatureMonitor_async + */ + deleteFeatureMonitor( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + deleteFeatureMonitor( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeatureMonitor( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteFeatureMonitor( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteFeatureMonitorRequest, + 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.deleteFeatureMonitor(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteFeatureMonitor()`. + * @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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.delete_feature_monitor.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_DeleteFeatureMonitor_async + */ + async checkDeleteFeatureMonitorProgress( + 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.deleteFeatureMonitor, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } + /** + * Lists FeatureGroups in a given project and location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list FeatureGroups. + * Format: + * `projects/{project}/locations/{location}` + * @param {string} request.filter + * Lists the FeatureGroups that match the filter expression. The + * following fields are supported: + * + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * in RFC 3339 format. * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be * in RFC 3339 format. @@ -3670,20 +4329,80 @@ export class FeatureRegistryServiceClient { * * `update_time` * @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 {@link protos.google.cloud.aiplatform.v1beta1.FeatureGroup|FeatureGroup} on 'data' event. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.aiplatform.v1beta1.FeatureGroup|FeatureGroup}. * 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. + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. * We recommend using `listFeatureGroupsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listFeatureGroupsStream( + listFeatureGroups( request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, options?: CallOptions - ): Transform { + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeatureGroup[], + protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse, + ] + >; + listFeatureGroups( + request: protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeatureGroup + > + ): void; + listFeatureGroups( + request: protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeatureGroup + > + ): void; + listFeatureGroups( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeatureGroup + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeatureGroup + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeatureGroup[], + protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsResponse, + ] + > | 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 || {}; @@ -3691,20 +4410,12 @@ export class FeatureRegistryServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listFeatureGroups']; - const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listFeatureGroups.createStream( - this.innerApiCalls.listFeatureGroups as GaxCall, - request, - callSettings - ); + return this.innerApiCalls.listFeatureGroups(request, options, callback); } /** - * Equivalent to `listFeatureGroups`, but returns an iterable object. - * - * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * 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 @@ -3751,17 +4462,98 @@ export class FeatureRegistryServiceClient { * * `update_time` * @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 {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. - * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.aiplatform.v1beta1.FeatureGroup|FeatureGroup}. 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. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.aiplatform.v1beta1.FeatureGroup|FeatureGroup} 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 `listFeatureGroupsAsync()` + * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/feature_registry_service.list_feature_groups.js - * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatureGroups_async */ - listFeatureGroupsAsync( + listFeatureGroupsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, + 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['listFeatureGroups']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatureGroups.createStream( + this.innerApiCalls.listFeatureGroups as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listFeatureGroups`, 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 FeatureGroups. + * Format: + * `projects/{project}/locations/{location}` + * @param {string} request.filter + * Lists the FeatureGroups that match the filter expression. The + * following fields are supported: + * + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * in RFC 3339 format. + * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * in RFC 3339 format. + * * `labels`: Supports key-value equality and key presence. + * + * Examples: + * + * * `create_time > "2020-01-01" OR update_time > "2020-01-01"` + * FeatureGroups created or updated after 2020-01-01. + * * `labels.env = "prod"` + * FeatureGroups with label "env" set to "prod". + * @param {number} request.pageSize + * The maximum number of FeatureGroups to return. The service may return + * fewer than this value. If unspecified, at most 100 FeatureGroups will + * be returned. The maximum value is 100; any value greater than 100 will be + * coerced to 100. + * @param {string} request.pageToken + * A page token, received from a previous + * {@link protos.|FeatureGroupAdminService.ListFeatureGroups} call. + * Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.|FeatureGroupAdminService.ListFeatureGroups} must + * match the call that provided the page token. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * Supported Fields: + * + * * `create_time` + * * `update_time` + * @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 {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureGroup|FeatureGroup}. 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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.list_feature_groups.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatureGroups_async + */ + listFeatureGroupsAsync( request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureGroupsRequest, options?: CallOptions ): AsyncIterable { @@ -3853,69 +4645,687 @@ export class FeatureRegistryServiceClient { * @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 {@link protos.google.cloud.aiplatform.v1beta1.Feature|Feature}. + * The first element of the array is Array of {@link protos.google.cloud.aiplatform.v1beta1.Feature|Feature}. + * 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 `listFeaturesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listFeatures( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeature[], + protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse, + ] + >; + listFeatures( + request: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeature + > + ): void; + listFeatures( + request: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeature + > + ): void; + listFeatures( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeature + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeature + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeature[], + protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse, + ] + > | 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.listFeatures(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 Features. + * Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param {string} request.filter + * Lists the Features that match the filter expression. The following + * filters are supported: + * + * * `value_type`: Supports = and != comparisons. + * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must + * be in RFC 3339 format. + * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must + * be in RFC 3339 format. + * * `labels`: Supports key-value equality as well as key presence. + * + * Examples: + * + * * `value_type = DOUBLE` --> Features whose type is DOUBLE. + * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR + * update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created + * or updated after 2020-01-31T15:30:00.000000Z. + * * `labels.active = yes AND labels.env = prod` --> Features having both + * (active: yes) and (env: prod) labels. + * * `labels.env: *` --> Any Feature which has a label with 'env' as the + * key. + * @param {number} request.pageSize + * The maximum number of Features to return. The service may return fewer + * than this value. If unspecified, at most 1000 Features will be returned. + * The maximum value is 1000; any value greater than 1000 will be coerced to + * 1000. + * @param {string} request.pageToken + * A page token, received from a previous + * {@link protos.google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * call or + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * or + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} + * must match the call that provided the page token. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * Supported fields: + * + * * `feature_id` + * * `value_type` (Not supported for FeatureRegistry Feature) + * * `create_time` + * * `update_time` + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {number} request.latestStatsCount + * Only applicable for Vertex AI Feature Store (Legacy). + * If set, return the most recent + * {@link protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count|ListFeaturesRequest.latest_stats_count} + * of stats for each Feature in response. Valid value is [0, 10]. If number of + * stats exists < + * {@link protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count|ListFeaturesRequest.latest_stats_count}, + * return all existing stats. + * @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 {@link protos.google.cloud.aiplatform.v1beta1.Feature|Feature} 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 `listFeaturesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listFeaturesStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + 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['listFeatures']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatures.createStream( + this.innerApiCalls.listFeatures as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listFeatures`, 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 Features. + * Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param {string} request.filter + * Lists the Features that match the filter expression. The following + * filters are supported: + * + * * `value_type`: Supports = and != comparisons. + * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must + * be in RFC 3339 format. + * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must + * be in RFC 3339 format. + * * `labels`: Supports key-value equality as well as key presence. + * + * Examples: + * + * * `value_type = DOUBLE` --> Features whose type is DOUBLE. + * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR + * update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created + * or updated after 2020-01-31T15:30:00.000000Z. + * * `labels.active = yes AND labels.env = prod` --> Features having both + * (active: yes) and (env: prod) labels. + * * `labels.env: *` --> Any Feature which has a label with 'env' as the + * key. + * @param {number} request.pageSize + * The maximum number of Features to return. The service may return fewer + * than this value. If unspecified, at most 1000 Features will be returned. + * The maximum value is 1000; any value greater than 1000 will be coerced to + * 1000. + * @param {string} request.pageToken + * A page token, received from a previous + * {@link protos.google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * call or + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} + * or + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} + * must match the call that provided the page token. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * Supported fields: + * + * * `feature_id` + * * `value_type` (Not supported for FeatureRegistry Feature) + * * `create_time` + * * `update_time` + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {number} request.latestStatsCount + * Only applicable for Vertex AI Feature Store (Legacy). + * If set, return the most recent + * {@link protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count|ListFeaturesRequest.latest_stats_count} + * of stats for each Feature in response. Valid value is [0, 10]. If number of + * stats exists < + * {@link protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count|ListFeaturesRequest.latest_stats_count}, + * return all existing stats. + * @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 {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.aiplatform.v1beta1.Feature|Feature}. 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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.list_features.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatures_async + */ + listFeaturesAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + 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['listFeatures']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatures.asyncIterate( + this.innerApiCalls['listFeatures'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists FeatureGroups in a given project and location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the FeatureGroup to list FeatureMonitors. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * @param {string} [request.filter] + * Optional. Lists the FeatureMonitors that match the filter expression. The + * following fields are supported: + * + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * in RFC 3339 format. + * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * in RFC 3339 format. + * * `labels`: Supports key-value equality and key presence. + * + * Examples: + * + * * `create_time > "2020-01-01" OR update_time > "2020-01-01"` + * FeatureMonitors created or updated after 2020-01-01. + * * `labels.env = "prod"` + * FeatureGroups with label "env" set to "prod". + * @param {number} [request.pageSize] + * Optional. The maximum number of FeatureGroups to return. The service may + * return fewer than this value. If unspecified, at most 100 FeatureMonitors + * will be returned. The maximum value is 100; any value greater than 100 will + * be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors|FeatureRegistryService.ListFeatureMonitors} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors|FeatureRegistryService.ListFeatureMonitors} + * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported Fields: + * + * * `create_time` + * * `update_time` + * @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 {@link protos.google.cloud.aiplatform.v1beta1.FeatureMonitor|FeatureMonitor}. + * 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 `listFeatureMonitorsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listFeatureMonitors( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor[], + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse, + ] + >; + listFeatureMonitors( + request: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor + > + ): void; + listFeatureMonitors( + request: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor + > + ): void; + listFeatureMonitors( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor[], + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsResponse, + ] + > | 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.listFeatureMonitors(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 FeatureGroup to list FeatureMonitors. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * @param {string} [request.filter] + * Optional. Lists the FeatureMonitors that match the filter expression. The + * following fields are supported: + * + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * in RFC 3339 format. + * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * in RFC 3339 format. + * * `labels`: Supports key-value equality and key presence. + * + * Examples: + * + * * `create_time > "2020-01-01" OR update_time > "2020-01-01"` + * FeatureMonitors created or updated after 2020-01-01. + * * `labels.env = "prod"` + * FeatureGroups with label "env" set to "prod". + * @param {number} [request.pageSize] + * Optional. The maximum number of FeatureGroups to return. The service may + * return fewer than this value. If unspecified, at most 100 FeatureMonitors + * will be returned. The maximum value is 100; any value greater than 100 will + * be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors|FeatureRegistryService.ListFeatureMonitors} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors|FeatureRegistryService.ListFeatureMonitors} + * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported Fields: + * + * * `create_time` + * * `update_time` + * @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 {@link protos.google.cloud.aiplatform.v1beta1.FeatureMonitor|FeatureMonitor} 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 `listFeatureMonitorsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listFeatureMonitorsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, + 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['listFeatureMonitors']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatureMonitors.createStream( + this.innerApiCalls.listFeatureMonitors as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listFeatureMonitors`, 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 FeatureGroup to list FeatureMonitors. + * Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * @param {string} [request.filter] + * Optional. Lists the FeatureMonitors that match the filter expression. The + * following fields are supported: + * + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * in RFC 3339 format. + * * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * in RFC 3339 format. + * * `labels`: Supports key-value equality and key presence. + * + * Examples: + * + * * `create_time > "2020-01-01" OR update_time > "2020-01-01"` + * FeatureMonitors created or updated after 2020-01-01. + * * `labels.env = "prod"` + * FeatureGroups with label "env" set to "prod". + * @param {number} [request.pageSize] + * Optional. The maximum number of FeatureGroups to return. The service may + * return fewer than this value. If unspecified, at most 100 FeatureMonitors + * will be returned. The maximum value is 100; any value greater than 100 will + * be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors|FeatureRegistryService.ListFeatureMonitors} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors|FeatureRegistryService.ListFeatureMonitors} + * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported Fields: + * + * * `create_time` + * * `update_time` + * @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 {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureMonitor|FeatureMonitor}. 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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/feature_registry_service.list_feature_monitors.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatureMonitors_async + */ + listFeatureMonitorsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorsRequest, + 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['listFeatureMonitors']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listFeatureMonitors.asyncIterate( + this.innerApiCalls['listFeatureMonitors'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * List feature monitor jobs. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the FeatureMonitor to list + * FeatureMonitorJobs. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + * @param {string} [request.filter] + * Optional. Lists the FeatureMonitorJobs that match the filter expression. + * The following fields are supported: + * + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be + * + * Examples: + * + * * `create_time > "2020-01-01"` + * FeatureMonitorJobs created after 2020-01-01. + * @param {number} [request.pageSize] + * Optional. The maximum number of FeatureMonitorJobs to return. The service + * may return fewer than this value. If unspecified, at most 100 + * FeatureMonitorJobs will be returned. The maximum value is 100; any value + * greater than 100 will be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs|FeatureRegistryService.ListFeatureMonitorJobs} + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs|FeatureRegistryService.ListFeatureMonitorJobs} + * must match the call that provided the page token. + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported Fields: + * + * * `create_time` + * @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 {@link protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob|FeatureMonitorJob}. * 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 `listFeaturesAsync()` + * We recommend using `listFeatureMonitorJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listFeatures( - request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + listFeatureMonitorJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IFeature[], - protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob[], + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse, ] >; - listFeatures( - request: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + listFeatureMonitorJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, - | protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IFeature + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob > ): void; - listFeatures( - request: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + listFeatureMonitorJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, - | protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IFeature + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob > ): void; - listFeatures( - request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + listFeatureMonitorJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, - | protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IFeature + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, - | protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IFeature + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IFeature[], - protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob[], + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsResponse, ] > | void { request = request || {}; @@ -3934,7 +5344,11 @@ export class FeatureRegistryServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listFeatures(request, options, callback); + return this.innerApiCalls.listFeatureMonitorJobs( + request, + options, + callback + ); } /** @@ -3942,81 +5356,51 @@ export class FeatureRegistryServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list Features. - * Format for entity_type as parent: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - * Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @param {string} request.filter - * Lists the Features that match the filter expression. The following - * filters are supported: + * Required. The resource name of the FeatureMonitor to list + * FeatureMonitorJobs. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + * @param {string} [request.filter] + * Optional. Lists the FeatureMonitorJobs that match the filter expression. + * The following fields are supported: * - * * `value_type`: Supports = and != comparisons. - * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must - * be in RFC 3339 format. - * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must - * be in RFC 3339 format. - * * `labels`: Supports key-value equality as well as key presence. + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be * * Examples: * - * * `value_type = DOUBLE` --> Features whose type is DOUBLE. - * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR - * update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created - * or updated after 2020-01-31T15:30:00.000000Z. - * * `labels.active = yes AND labels.env = prod` --> Features having both - * (active: yes) and (env: prod) labels. - * * `labels.env: *` --> Any Feature which has a label with 'env' as the - * key. - * @param {number} request.pageSize - * The maximum number of Features to return. The service may return fewer - * than this value. If unspecified, at most 1000 Features will be returned. - * The maximum value is 1000; any value greater than 1000 will be coerced to - * 1000. - * @param {string} request.pageToken - * A page token, received from a previous - * {@link protos.google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} - * call or - * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} + * * `create_time > "2020-01-01"` + * FeatureMonitorJobs created after 2020-01-01. + * @param {number} [request.pageSize] + * Optional. The maximum number of FeatureMonitorJobs to return. The service + * may return fewer than this value. If unspecified, at most 100 + * FeatureMonitorJobs will be returned. The maximum value is 100; any value + * greater than 100 will be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs|FeatureRegistryService.ListFeatureMonitorJobs} * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * {@link protos.google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} - * or - * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs|FeatureRegistryService.ListFeatureMonitorJobs} * must match the call that provided the page token. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported Fields: * - * * `feature_id` - * * `value_type` (Not supported for FeatureRegistry Feature) * * `create_time` - * * `update_time` - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. - * @param {number} request.latestStatsCount - * Only applicable for Vertex AI Feature Store (Legacy). - * If set, return the most recent - * {@link protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count|ListFeaturesRequest.latest_stats_count} - * of stats for each Feature in response. Valid value is [0, 10]. If number of - * stats exists < - * {@link protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count|ListFeaturesRequest.latest_stats_count}, - * return all existing stats. * @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 {@link protos.google.cloud.aiplatform.v1beta1.Feature|Feature} on 'data' event. + * An object stream which emits an object representing {@link protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob|FeatureMonitorJob} 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 `listFeaturesAsync()` + * We recommend using `listFeatureMonitorJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. */ - listFeaturesStream( - request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + listFeatureMonitorJobsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4027,101 +5411,71 @@ export class FeatureRegistryServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listFeatures']; + const defaultCallSettings = this._defaults['listFeatureMonitorJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listFeatures.createStream( - this.innerApiCalls.listFeatures as GaxCall, + return this.descriptors.page.listFeatureMonitorJobs.createStream( + this.innerApiCalls.listFeatureMonitorJobs as GaxCall, request, callSettings ); } /** - * Equivalent to `listFeatures`, but returns an iterable object. + * Equivalent to `listFeatureMonitorJobs`, 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 Features. - * Format for entity_type as parent: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - * Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @param {string} request.filter - * Lists the Features that match the filter expression. The following - * filters are supported: + * Required. The resource name of the FeatureMonitor to list + * FeatureMonitorJobs. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + * @param {string} [request.filter] + * Optional. Lists the FeatureMonitorJobs that match the filter expression. + * The following fields are supported: * - * * `value_type`: Supports = and != comparisons. - * * `create_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must - * be in RFC 3339 format. - * * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must - * be in RFC 3339 format. - * * `labels`: Supports key-value equality as well as key presence. + * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be * * Examples: * - * * `value_type = DOUBLE` --> Features whose type is DOUBLE. - * * `create_time > \"2020-01-31T15:30:00.000000Z\" OR - * update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes created - * or updated after 2020-01-31T15:30:00.000000Z. - * * `labels.active = yes AND labels.env = prod` --> Features having both - * (active: yes) and (env: prod) labels. - * * `labels.env: *` --> Any Feature which has a label with 'env' as the - * key. - * @param {number} request.pageSize - * The maximum number of Features to return. The service may return fewer - * than this value. If unspecified, at most 1000 Features will be returned. - * The maximum value is 1000; any value greater than 1000 will be coerced to - * 1000. - * @param {string} request.pageToken - * A page token, received from a previous - * {@link protos.google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} - * call or - * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} + * * `create_time > "2020-01-01"` + * FeatureMonitorJobs created after 2020-01-01. + * @param {number} [request.pageSize] + * Optional. The maximum number of FeatureMonitorJobs to return. The service + * may return fewer than this value. If unspecified, at most 100 + * FeatureMonitorJobs will be returned. The maximum value is 100; any value + * greater than 100 will be coerced to 100. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs|FeatureRegistryService.ListFeatureMonitorJobs} * call. Provide this to retrieve the subsequent page. * * When paginating, all other parameters provided to - * {@link protos.google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures|FeaturestoreService.ListFeatures} - * or - * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures|FeatureRegistryService.ListFeatures} + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs|FeatureRegistryService.ListFeatureMonitorJobs} * must match the call that provided the page token. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: + * @param {string} [request.orderBy] + * Optional. A comma-separated list of fields to order by, sorted in ascending + * order. Use "desc" after a field name for descending. Supported Fields: * - * * `feature_id` - * * `value_type` (Not supported for FeatureRegistry Feature) * * `create_time` - * * `update_time` - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. - * @param {number} request.latestStatsCount - * Only applicable for Vertex AI Feature Store (Legacy). - * If set, return the most recent - * {@link protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count|ListFeaturesRequest.latest_stats_count} - * of stats for each Feature in response. Valid value is [0, 10]. If number of - * stats exists < - * {@link protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count|ListFeaturesRequest.latest_stats_count}, - * return all existing stats. * @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 {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. * When you iterate the returned iterable, each element will be an object representing - * {@link protos.google.cloud.aiplatform.v1beta1.Feature|Feature}. The API will be called under the hood as needed, once per the page, + * {@link protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob|FeatureMonitorJob}. 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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } * for more details and examples. - * @example include:samples/generated/v1beta1/feature_registry_service.list_features.js - * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatures_async + * @example include:samples/generated/v1beta1/feature_registry_service.list_feature_monitor_jobs.js + * region_tag:aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatureMonitorJobs_async */ - listFeaturesAsync( - request?: protos.google.cloud.aiplatform.v1beta1.IListFeaturesRequest, + listFeatureMonitorJobsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListFeatureMonitorJobsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4130,14 +5484,14 @@ export class FeatureRegistryServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listFeatures']; + const defaultCallSettings = this._defaults['listFeatureMonitorJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listFeatures.asyncIterate( - this.innerApiCalls['listFeatures'] as GaxCall, + return this.descriptors.page.listFeatureMonitorJobs.asyncIterate( + this.innerApiCalls['listFeatureMonitorJobs'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** * Gets the access control policy for a resource. Returns an empty policy @@ -5558,6 +6912,174 @@ export class FeatureRegistryServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client_config.json index 5f24dae2d39..33695a1ced7 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_client_config.json @@ -44,6 +44,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "BatchCreateFeatures": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "GetFeature": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -59,6 +63,34 @@ "DeleteFeature": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "CreateFeatureMonitor": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetFeatureMonitor": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListFeatureMonitors": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteFeatureMonitor": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CreateFeatureMonitorJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetFeatureMonitorJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListFeatureMonitorJobs": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 0a5cc557987..7279d552d15 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 @@ -258,6 +258,12 @@ export class FeaturestoreOnlineServingServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -2084,6 +2090,174 @@ export class FeaturestoreOnlineServingServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 ba67694bb0b..8c0b44cad11 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts @@ -262,6 +262,12 @@ export class FeaturestoreServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -2817,6 +2823,10 @@ export class FeaturestoreServiceClient { * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` * Format for feature_group as parent: * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param {google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec} [request.featureStatsAndAnomalySpec] + * Optional. Only applicable for Vertex AI Feature Store. + * If set, retrieves FeatureStatsAndAnomaly generated by FeatureMonitors based + * on this spec. * @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. @@ -3900,15 +3910,16 @@ export class FeaturestoreServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the EntityType to create the batch of - * Features under. Format: + * Required. The resource name of the EntityType/FeatureGroup to create the + * batch of Features under. Format: * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @param {number[]} request.requests * Required. The request message specifying the Features to create. All - * Features must be created under the same parent EntityType. The `parent` - * field in each child request message can be omitted. If `parent` is set in a - * child request, then the value must match the `parent` value in this request - * message. + * Features must be created under the same parent EntityType / FeatureGroup. + * The `parent` field in each child request message can be omitted. If + * `parent` is set in a child request, then the value must match the `parent` + * value in this request message. * @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. @@ -7652,6 +7663,174 @@ export class FeaturestoreServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json index 4af04ef8407..4efc9590d99 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json @@ -759,6 +759,21 @@ "getFeature" ] }, + "GetFeatureMonitor": { + "methods": [ + "getFeatureMonitor" + ] + }, + "CreateFeatureMonitorJob": { + "methods": [ + "createFeatureMonitorJob" + ] + }, + "GetFeatureMonitorJob": { + "methods": [ + "getFeatureMonitorJob" + ] + }, "CreateFeatureGroup": { "methods": [ "createFeatureGroup" @@ -779,6 +794,11 @@ "createFeature" ] }, + "BatchCreateFeatures": { + "methods": [ + "batchCreateFeatures" + ] + }, "UpdateFeature": { "methods": [ "updateFeature" @@ -789,6 +809,16 @@ "deleteFeature" ] }, + "CreateFeatureMonitor": { + "methods": [ + "createFeatureMonitor" + ] + }, + "DeleteFeatureMonitor": { + "methods": [ + "deleteFeatureMonitor" + ] + }, "ListFeatureGroups": { "methods": [ "listFeatureGroups", @@ -802,6 +832,20 @@ "listFeaturesStream", "listFeaturesAsync" ] + }, + "ListFeatureMonitors": { + "methods": [ + "listFeatureMonitors", + "listFeatureMonitorsStream", + "listFeatureMonitorsAsync" + ] + }, + "ListFeatureMonitorJobs": { + "methods": [ + "listFeatureMonitorJobs", + "listFeatureMonitorJobsStream", + "listFeatureMonitorJobsAsync" + ] } } }, @@ -818,6 +862,21 @@ "getFeature" ] }, + "GetFeatureMonitor": { + "methods": [ + "getFeatureMonitor" + ] + }, + "CreateFeatureMonitorJob": { + "methods": [ + "createFeatureMonitorJob" + ] + }, + "GetFeatureMonitorJob": { + "methods": [ + "getFeatureMonitorJob" + ] + }, "CreateFeatureGroup": { "methods": [ "createFeatureGroup" @@ -838,6 +897,11 @@ "createFeature" ] }, + "BatchCreateFeatures": { + "methods": [ + "batchCreateFeatures" + ] + }, "UpdateFeature": { "methods": [ "updateFeature" @@ -848,6 +912,16 @@ "deleteFeature" ] }, + "CreateFeatureMonitor": { + "methods": [ + "createFeatureMonitor" + ] + }, + "DeleteFeatureMonitor": { + "methods": [ + "deleteFeatureMonitor" + ] + }, "ListFeatureGroups": { "methods": [ "listFeatureGroups", @@ -861,6 +935,20 @@ "listFeaturesStream", "listFeaturesAsync" ] + }, + "ListFeatureMonitors": { + "methods": [ + "listFeatureMonitors", + "listFeatureMonitorsStream", + "listFeatureMonitorsAsync" + ] + }, + "ListFeatureMonitorJobs": { + "methods": [ + "listFeatureMonitorJobs", + "listFeatureMonitorJobsStream", + "listFeatureMonitorJobsAsync" + ] } } } @@ -2756,6 +2844,11 @@ "startNotebookRuntime" ] }, + "StopNotebookRuntime": { + "methods": [ + "stopNotebookRuntime" + ] + }, "CreateNotebookExecutionJob": { "methods": [ "createNotebookExecutionJob" @@ -2842,6 +2935,11 @@ "startNotebookRuntime" ] }, + "StopNotebookRuntime": { + "methods": [ + "stopNotebookRuntime" + ] + }, "CreateNotebookExecutionJob": { "methods": [ "createNotebookExecutionJob" diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_client.ts index 597d3dd6d94..fe753927251 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_client.ts @@ -259,6 +259,12 @@ export class GenAiCacheServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -2416,6 +2422,174 @@ export class GenAiCacheServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_client.ts index c81a0de4c66..3359aa1817c 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_client.ts @@ -262,6 +262,12 @@ export class GenAiTuningServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -4410,6 +4416,174 @@ export class GenAiTuningServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", 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 b844578859b..3b000a81b91 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 @@ -262,6 +262,12 @@ export class IndexEndpointServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -4974,6 +4980,174 @@ export class IndexEndpointServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 19bf69735a3..c057a22bf67 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts @@ -262,6 +262,12 @@ export class IndexServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -4719,6 +4725,174 @@ export class IndexServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 43be136f0d2..4b8668db925 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts @@ -262,6 +262,12 @@ export class JobServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -9073,6 +9079,174 @@ export class JobServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client.ts index b94c3fa4025..30df4e32f07 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_client.ts @@ -257,6 +257,12 @@ export class LlmUtilityServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -1896,6 +1902,174 @@ export class LlmUtilityServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/match_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/match_service_client.ts index 3d57822306a..13e1b1f17a9 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/match_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/match_service_client.ts @@ -258,6 +258,12 @@ export class MatchServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -2004,6 +2010,174 @@ export class MatchServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 aa2412c233f..3a0e4102385 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts @@ -262,6 +262,12 @@ export class MetadataServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -8459,6 +8465,174 @@ export class MetadataServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 53a8a816349..2278a3d8ab5 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts @@ -263,6 +263,12 @@ export class MigrationServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -4148,6 +4154,174 @@ export class MigrationServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_client.ts index 38d5ec00fa8..564927ee782 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_client.ts @@ -259,6 +259,12 @@ export class ModelGardenServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -2156,6 +2162,174 @@ export class ModelGardenServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_client.ts index 1df8f57beee..02792845b3c 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_client.ts @@ -264,6 +264,12 @@ export class ModelMonitoringServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -5564,6 +5570,174 @@ export class ModelMonitoringServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 bc2f611a000..15ccd45cb60 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts @@ -262,6 +262,12 @@ export class ModelServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -6552,6 +6558,174 @@ export class ModelServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_client.ts index d2fb9ba14ae..724fab4dc2f 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_client.ts @@ -262,6 +262,12 @@ export class NotebookServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -2198,6 +2204,12 @@ export class NotebookServiceClient { const startNotebookRuntimeMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeOperationMetadata' ) as gax.protobuf.Type; + const stopNotebookRuntimeResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse' + ) as gax.protobuf.Type; + const stopNotebookRuntimeMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata' + ) as gax.protobuf.Type; const createNotebookExecutionJobResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.NotebookExecutionJob' ) as gax.protobuf.Type; @@ -2258,6 +2270,11 @@ export class NotebookServiceClient { startNotebookRuntimeResponse.decode.bind(startNotebookRuntimeResponse), startNotebookRuntimeMetadata.decode.bind(startNotebookRuntimeMetadata) ), + stopNotebookRuntime: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + stopNotebookRuntimeResponse.decode.bind(stopNotebookRuntimeResponse), + stopNotebookRuntimeMetadata.decode.bind(stopNotebookRuntimeMetadata) + ), createNotebookExecutionJob: new this._gaxModule.LongrunningDescriptor( this.operationsClient, createNotebookExecutionJobResponse.decode.bind( @@ -2339,6 +2356,7 @@ export class NotebookServiceClient { 'deleteNotebookRuntime', 'upgradeNotebookRuntime', 'startNotebookRuntime', + 'stopNotebookRuntime', 'createNotebookExecutionJob', 'getNotebookExecutionJob', 'listNotebookExecutionJobs', @@ -3726,6 +3744,145 @@ export class NotebookServiceClient { protos.google.cloud.aiplatform.v1beta1.StartNotebookRuntimeOperationMetadata >; } + /** + * Stops a NotebookRuntime. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the NotebookRuntime resource to be stopped. + * Instead of checking whether the name is in valid NotebookRuntime resource + * name format, directly throw NotFound exception if there is no such + * NotebookRuntime in spanner. + * @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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/notebook_service.stop_notebook_runtime.js + * region_tag:aiplatform_v1beta1_generated_NotebookService_StopNotebookRuntime_async + */ + stopNotebookRuntime( + request?: protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse, + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + stopNotebookRuntime( + request: protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse, + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + stopNotebookRuntime( + request: protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse, + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + stopNotebookRuntime( + request?: protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse, + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse, + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse, + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata + >, + 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.stopNotebookRuntime(request, options, callback); + } + /** + * Check the status of the long running operation returned by `stopNotebookRuntime()`. + * @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 {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/notebook_service.stop_notebook_runtime.js + * region_tag:aiplatform_v1beta1_generated_NotebookService_StopNotebookRuntime_async + */ + async checkStopNotebookRuntimeProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse, + protos.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + > + > { + 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.stopNotebookRuntime, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeResponse, + protos.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeOperationMetadata + >; + } /** * Creates a NotebookExecutionJob. * @@ -6368,6 +6525,174 @@ export class NotebookServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_client_config.json index bdda31de4ff..a2830abe16e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_client_config.json @@ -64,6 +64,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "StopNotebookRuntime": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "CreateNotebookExecutionJob": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_client.ts index 254829ea74f..0067c0dfcea 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_client.ts @@ -263,6 +263,12 @@ export class PersistentResourceServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -4691,6 +4697,174 @@ export class PersistentResourceServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 8c950a5232c..76883aac53b 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts @@ -264,6 +264,12 @@ export class PipelineServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -5656,6 +5662,174 @@ export class PipelineServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 6b14a308210..d1bc3f5e975 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts @@ -257,6 +257,12 @@ export class PredictionServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -2958,6 +2964,174 @@ export class PredictionServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_client.ts index 4b7d50d98b4..852aacedeed 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_client.ts @@ -258,6 +258,12 @@ export class ReasoningEngineExecutionServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -1897,6 +1903,174 @@ export class ReasoningEngineExecutionServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_client.ts index 4fc28e05136..fba9253caaf 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_client.ts @@ -263,6 +263,12 @@ export class ReasoningEngineServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -4500,6 +4506,174 @@ export class ReasoningEngineServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_client.ts index 2e8bee82c4e..18c2a6e27c5 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_client.ts @@ -263,6 +263,12 @@ export class ScheduleServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -4743,6 +4749,174 @@ export class ScheduleServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 e3279623b93..1b612a6bfb8 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 @@ -268,6 +268,12 @@ export class SpecialistPoolServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -4514,6 +4520,174 @@ export class SpecialistPoolServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 488fa2017d0..77c1ebb2424 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts @@ -262,6 +262,12 @@ export class TensorboardServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -7872,6 +7878,174 @@ export class TensorboardServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_client.ts index 58f374fec1f..ff70402c56f 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_client.ts @@ -262,6 +262,12 @@ export class VertexRagDataServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -5203,6 +5209,174 @@ export class VertexRagDataServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_client.ts index c6869f6d2de..52205241651 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_client.ts @@ -257,6 +257,12 @@ export class VertexRagServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -1901,6 +1907,174 @@ export class VertexRagServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_proto_list.json index d5e6efb45ff..3ee5ed06f23 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_proto_list.json @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.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 48b6b877f55..e8eb0981d4f 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts @@ -266,6 +266,12 @@ export class VizierServiceClient { featureGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureGroups/{feature_group}' ), + featureMonitorPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}' + ), + featureMonitorJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_monitor_job}' + ), featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' ), @@ -5556,6 +5562,174 @@ export class VizierServiceClient { .feature_group; } + /** + * Return a fully-qualified featureMonitor resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @returns {string} Resource name string. + */ + featureMonitorPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string + ) { + return this.pathTemplates.featureMonitorPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + }); + } + + /** + * Parse the project from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).project; + } + + /** + * Parse the location from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitor resource. + * + * @param {string} featureMonitorName + * A fully-qualified path representing FeatureMonitor resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorName(featureMonitorName: string) { + return this.pathTemplates.featureMonitorPathTemplate.match( + featureMonitorName + ).feature_monitor; + } + + /** + * Return a fully-qualified featureMonitorJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature_monitor + * @param {string} feature_monitor_job + * @returns {string} Resource name string. + */ + featureMonitorJobPath( + project: string, + location: string, + featureGroup: string, + featureMonitor: string, + featureMonitorJob: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + feature_monitor: featureMonitor, + feature_monitor_job: featureMonitorJob, + }); + } + + /** + * Parse the project from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).project; + } + + /** + * Parse the location from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).location; + } + + /** + * Parse the feature_group from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_group; + } + + /** + * Parse the feature_monitor from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor. + */ + matchFeatureMonitorFromFeatureMonitorJobName(featureMonitorJobName: string) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor; + } + + /** + * Parse the feature_monitor_job from FeatureMonitorJob resource. + * + * @param {string} featureMonitorJobName + * A fully-qualified path representing FeatureMonitorJob resource. + * @returns {string} A string representing the feature_monitor_job. + */ + matchFeatureMonitorJobFromFeatureMonitorJobName( + featureMonitorJobName: string + ) { + return this.pathTemplates.featureMonitorJobPathTemplate.match( + featureMonitorJobName + ).feature_monitor_job; + } + /** * Return a fully-qualified featureOnlineStore 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 d5e6efb45ff..3ee5ed06f23 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 @@ -35,6 +35,8 @@ "../../protos/google/cloud/aiplatform/v1beta1/extension_registry_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor.proto", + "../../protos/google/cloud/aiplatform/v1beta1/feature_monitor_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_monitoring_stats.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto", "../../protos/google/cloud/aiplatform/v1beta1/feature_online_store_admin_service.proto", 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 6c022c7f83a..a7d80c53893 100644 --- a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts @@ -6517,6 +6517,192 @@ describe('v1beta1.DatasetServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 978006ae7f7..58c66abf51e 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 @@ -4021,6 +4021,198 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 6508431c90f..4624d00af49 100644 --- a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts @@ -4096,6 +4096,192 @@ describe('v1beta1.EndpointServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_evaluation_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_evaluation_service_v1beta1.ts index 26f9ae92d78..7568f48b280 100644 --- a/packages/google-cloud-aiplatform/test/gapic_evaluation_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_evaluation_service_v1beta1.ts @@ -2130,6 +2130,194 @@ describe('v1beta1.EvaluationServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new evaluationserviceModule.v1beta1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new evaluationserviceModule.v1beta1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_extension_execution_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_extension_execution_service_v1beta1.ts index da4dc1167b7..00e9039cbe3 100644 --- a/packages/google-cloud-aiplatform/test/gapic_extension_execution_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_extension_execution_service_v1beta1.ts @@ -2355,6 +2355,198 @@ describe('v1beta1.ExtensionExecutionServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new extensionexecutionserviceModule.v1beta1.ExtensionExecutionServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new extensionexecutionserviceModule.v1beta1.ExtensionExecutionServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_extension_registry_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_extension_registry_service_v1beta1.ts index 752f911d0ef..70afee3170e 100644 --- a/packages/google-cloud-aiplatform/test/gapic_extension_registry_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_extension_registry_service_v1beta1.ts @@ -3548,6 +3548,198 @@ describe('v1beta1.ExtensionRegistryServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new extensionregistryserviceModule.v1beta1.ExtensionRegistryServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new extensionregistryserviceModule.v1beta1.ExtensionRegistryServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_feature_online_store_admin_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_feature_online_store_admin_service_v1beta1.ts index 7d94242c3e3..00b80c5caa7 100644 --- a/packages/google-cloud-aiplatform/test/gapic_feature_online_store_admin_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_feature_online_store_admin_service_v1beta1.ts @@ -5444,6 +5444,198 @@ describe('v1beta1.FeatureOnlineStoreAdminServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1beta1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new featureonlinestoreadminserviceModule.v1beta1.FeatureOnlineStoreAdminServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_feature_online_store_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_feature_online_store_service_v1beta1.ts index 491645cbb52..59e0fd36558 100644 --- a/packages/google-cloud-aiplatform/test/gapic_feature_online_store_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_feature_online_store_service_v1beta1.ts @@ -2475,6 +2475,198 @@ describe('v1beta1.FeatureOnlineStoreServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new featureonlinestoreserviceModule.v1beta1.FeatureOnlineStoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new featureonlinestoreserviceModule.v1beta1.FeatureOnlineStoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_feature_registry_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_feature_registry_service_v1.ts index a3eb4919db6..2b0a0786f53 100644 --- a/packages/google-cloud-aiplatform/test/gapic_feature_registry_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_feature_registry_service_v1.ts @@ -1431,6 +1431,206 @@ describe('v1.FeatureRegistryServiceClient', () => { }); }); + describe('batchCreateFeatures', () => { + it('invokes batchCreateFeatures without error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.batchCreateFeatures = + stubLongRunningCall(expectedResponse); + const [operation] = await client.batchCreateFeatures(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchCreateFeatures without error using callback', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.batchCreateFeatures = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.batchCreateFeatures( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1.IBatchCreateFeaturesOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchCreateFeatures with call error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.batchCreateFeatures = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.batchCreateFeatures(request), expectedError); + const actualRequest = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchCreateFeatures with LRO error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.batchCreateFeatures = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.batchCreateFeatures(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkBatchCreateFeaturesProgress without error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + 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.checkBatchCreateFeaturesProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkBatchCreateFeaturesProgress with error', async () => { + const client = + new featureregistryserviceModule.v1.FeatureRegistryServiceClient({ + 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.checkBatchCreateFeaturesProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('updateFeature', () => { it('invokes updateFeature without error', async () => { const client = diff --git a/packages/google-cloud-aiplatform/test/gapic_feature_registry_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_feature_registry_service_v1beta1.ts index 74a8d802c29..1080c26c229 100644 --- a/packages/google-cloud-aiplatform/test/gapic_feature_registry_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_feature_registry_service_v1beta1.ts @@ -627,8 +627,8 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); }); - describe('createFeatureGroup', () => { - it('invokes createFeatureGroup without error', async () => { + describe('getFeatureMonitor', () => { + it('invokes getFeatureMonitor without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -636,33 +636,31 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ); - client.innerApiCalls.createFeatureGroup = - stubLongRunningCall(expectedResponse); - const [operation] = await client.createFeatureGroup(request); - const [response] = await operation.promise(); + client.innerApiCalls.getFeatureMonitor = stubSimpleCall(expectedResponse); + const [response] = await client.getFeatureMonitor(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitor as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitor as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createFeatureGroup without error using callback', async () => { + it('invokes getFeatureMonitor without error using callback', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -670,28 +668,25 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ); - client.innerApiCalls.createFeatureGroup = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getFeatureMonitor = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createFeatureGroup( + client.getFeatureMonitor( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.aiplatform.v1beta1.IFeatureGroup, - protos.google.cloud.aiplatform.v1beta1.ICreateFeatureGroupOperationMetadata - > | null + result?: protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor | null ) => { if (err) { reject(err); @@ -701,23 +696,19 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.aiplatform.v1beta1.IFeatureGroup, - protos.google.cloud.aiplatform.v1beta1.ICreateFeatureGroupOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitor as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitor as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createFeatureGroup with call error', async () => { + it('invokes getFeatureMonitor with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -725,31 +716,31 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createFeatureGroup = stubLongRunningCall( + client.innerApiCalls.getFeatureMonitor = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.createFeatureGroup(request), expectedError); + await assert.rejects(client.getFeatureMonitor(request), expectedError); const actualRequest = ( - client.innerApiCalls.createFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitor as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitor as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createFeatureGroup with LRO error', async () => { + it('invokes getFeatureMonitor with closed client', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -757,78 +748,162 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest', + '.google.cloud.aiplatform.v1beta1.GetFeatureMonitorRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getFeatureMonitor(request), expectedError); + }); + }); + + describe('createFeatureMonitorJob', () => { + it('invokes createFeatureMonitorJob without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.createFeatureGroup = stubLongRunningCall( - undefined, - undefined, - expectedError + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ); - const [operation] = await client.createFeatureGroup(request); - await assert.rejects(operation.promise(), expectedError); + client.innerApiCalls.createFeatureMonitorJob = + stubSimpleCall(expectedResponse); + const [response] = await client.createFeatureMonitorJob(request); + assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createFeatureGroup as SinonStub + client.innerApiCalls.createFeatureMonitorJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createFeatureGroup as SinonStub + client.innerApiCalls.createFeatureMonitorJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateFeatureGroupProgress without error', async () => { + it('invokes createFeatureMonitorJob without error using callback', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ 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.CreateFeatureMonitorJobRequest() ); - 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.checkCreateFeatureGroupProgress( - expectedResponse.name + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest', + ['parent'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() + ); + client.innerApiCalls.createFeatureMonitorJob = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createFeatureMonitorJob( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createFeatureMonitorJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureMonitorJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateFeatureGroupProgress with error', async () => { + it('invokes createFeatureMonitorJob with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.createFeatureMonitorJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.checkCreateFeatureGroupProgress(''), + client.createFeatureMonitorJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.createFeatureMonitorJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureMonitorJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureMonitorJob with closed client', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorJobRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createFeatureMonitorJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updateFeatureGroup', () => { - it('invokes updateFeatureGroup without error', async () => { + describe('getFeatureMonitorJob', () => { + it('invokes getFeatureMonitorJob without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -836,34 +911,32 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest() ); - request.featureGroup ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest', - ['featureGroup', 'name'] + '.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest', + ['name'] ); - request.featureGroup.name = defaultValue1; - const expectedHeaderRequestParams = `feature_group.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ); - client.innerApiCalls.updateFeatureGroup = - stubLongRunningCall(expectedResponse); - const [operation] = await client.updateFeatureGroup(request); - const [response] = await operation.promise(); + client.innerApiCalls.getFeatureMonitorJob = + stubSimpleCall(expectedResponse); + const [response] = await client.getFeatureMonitorJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitorJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitorJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateFeatureGroup without error using callback', async () => { + it('invokes getFeatureMonitorJob without error using callback', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -871,29 +944,25 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest() ); - request.featureGroup ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest', - ['featureGroup', 'name'] + '.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest', + ['name'] ); - request.featureGroup.name = defaultValue1; - const expectedHeaderRequestParams = `feature_group.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ); - client.innerApiCalls.updateFeatureGroup = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.getFeatureMonitorJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateFeatureGroup( + client.getFeatureMonitorJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.cloud.aiplatform.v1beta1.IFeatureGroup, - protos.google.cloud.aiplatform.v1beta1.IUpdateFeatureGroupOperationMetadata - > | null + result?: protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob | null ) => { if (err) { reject(err); @@ -903,23 +972,19 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.cloud.aiplatform.v1beta1.IFeatureGroup, - protos.google.cloud.aiplatform.v1beta1.IUpdateFeatureGroupOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitorJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitorJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateFeatureGroup with call error', async () => { + it('invokes getFeatureMonitorJob with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -927,32 +992,31 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest() ); - request.featureGroup ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest', - ['featureGroup', 'name'] + '.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest', + ['name'] ); - request.featureGroup.name = defaultValue1; - const expectedHeaderRequestParams = `feature_group.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateFeatureGroup = stubLongRunningCall( + client.innerApiCalls.getFeatureMonitorJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.updateFeatureGroup(request), expectedError); + await assert.rejects(client.getFeatureMonitorJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.updateFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitorJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateFeatureGroup as SinonStub + client.innerApiCalls.getFeatureMonitorJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateFeatureGroup with LRO error', async () => { + it('invokes getFeatureMonitorJob with closed client', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -960,79 +1024,21 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest() ); - request.featureGroup ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest', - ['featureGroup', 'name'] - ); - request.featureGroup.name = defaultValue1; - const expectedHeaderRequestParams = `feature_group.name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.updateFeatureGroup = stubLongRunningCall( - undefined, - undefined, - expectedError + '.google.cloud.aiplatform.v1beta1.GetFeatureMonitorJobRequest', + ['name'] ); - const [operation] = await client.updateFeatureGroup(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.updateFeatureGroup as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.updateFeatureGroup as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getFeatureMonitorJob(request), expectedError); }); + }); - it('invokes checkUpdateFeatureGroupProgress without error', async () => { - const client = - new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ - 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.checkUpdateFeatureGroupProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkUpdateFeatureGroupProgress with error', async () => { - const client = - new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ - 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.checkUpdateFeatureGroupProgress(''), - expectedError - ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - }); - - describe('deleteFeatureGroup', () => { - it('invokes deleteFeatureGroup without error', async () => { + describe('createFeatureGroup', () => { + it('invokes createFeatureGroup without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1040,33 +1046,33 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteFeatureGroup = + client.innerApiCalls.createFeatureGroup = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteFeatureGroup(request); + const [operation] = await client.createFeatureGroup(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteFeatureGroup as SinonStub + client.innerApiCalls.createFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteFeatureGroup as SinonStub + client.innerApiCalls.createFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteFeatureGroup without error using callback', async () => { + it('invokes createFeatureGroup without error using callback', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1074,27 +1080,27 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteFeatureGroup = + client.innerApiCalls.createFeatureGroup = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteFeatureGroup( + client.createFeatureGroup( request, ( err?: Error | null, result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + protos.google.cloud.aiplatform.v1beta1.IFeatureGroup, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureGroupOperationMetadata > | null ) => { if (err) { @@ -1106,22 +1112,22 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + protos.google.cloud.aiplatform.v1beta1.IFeatureGroup, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureGroupOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteFeatureGroup as SinonStub + client.innerApiCalls.createFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteFeatureGroup as SinonStub + client.innerApiCalls.createFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteFeatureGroup with call error', async () => { + it('invokes createFeatureGroup with call error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1129,31 +1135,31 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteFeatureGroup = stubLongRunningCall( + client.innerApiCalls.createFeatureGroup = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.deleteFeatureGroup(request), expectedError); + await assert.rejects(client.createFeatureGroup(request), expectedError); const actualRequest = ( - client.innerApiCalls.deleteFeatureGroup as SinonStub + client.innerApiCalls.createFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteFeatureGroup as SinonStub + client.innerApiCalls.createFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteFeatureGroup with LRO error', async () => { + it('invokes createFeatureGroup with LRO error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1161,33 +1167,33 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateFeatureGroupRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteFeatureGroup = stubLongRunningCall( + client.innerApiCalls.createFeatureGroup = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.deleteFeatureGroup(request); + const [operation] = await client.createFeatureGroup(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteFeatureGroup as SinonStub + client.innerApiCalls.createFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteFeatureGroup as SinonStub + client.innerApiCalls.createFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteFeatureGroupProgress without error', async () => { + it('invokes checkCreateFeatureGroupProgress without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1202,7 +1208,7 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkDeleteFeatureGroupProgress( + const decodedOperation = await client.checkCreateFeatureGroupProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -1210,7 +1216,7 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteFeatureGroupProgress with error', async () => { + it('invokes checkCreateFeatureGroupProgress with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1224,15 +1230,15 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { expectedError ); await assert.rejects( - client.checkDeleteFeatureGroupProgress(''), + client.checkCreateFeatureGroupProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('createFeature', () => { - it('invokes createFeature without error', async () => { + describe('updateFeatureGroup', () => { + it('invokes updateFeatureGroup without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1240,33 +1246,34 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest() ); + request.featureGroup ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest', + ['featureGroup', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.featureGroup.name = defaultValue1; + const expectedHeaderRequestParams = `feature_group.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.createFeature = + client.innerApiCalls.updateFeatureGroup = stubLongRunningCall(expectedResponse); - const [operation] = await client.createFeature(request); + const [operation] = await client.updateFeatureGroup(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createFeature as SinonStub + client.innerApiCalls.updateFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createFeature as SinonStub + client.innerApiCalls.updateFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createFeature without error using callback', async () => { + it('invokes updateFeatureGroup without error using callback', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1274,27 +1281,28 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest() ); + request.featureGroup ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest', + ['featureGroup', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.featureGroup.name = defaultValue1; + const expectedHeaderRequestParams = `feature_group.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.createFeature = + client.innerApiCalls.updateFeatureGroup = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createFeature( + client.updateFeatureGroup( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.aiplatform.v1beta1.IFeature, - protos.google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata + protos.google.cloud.aiplatform.v1beta1.IFeatureGroup, + protos.google.cloud.aiplatform.v1beta1.IUpdateFeatureGroupOperationMetadata > | null ) => { if (err) { @@ -1306,22 +1314,22 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.aiplatform.v1beta1.IFeature, - protos.google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata + protos.google.cloud.aiplatform.v1beta1.IFeatureGroup, + protos.google.cloud.aiplatform.v1beta1.IUpdateFeatureGroupOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createFeature as SinonStub + client.innerApiCalls.updateFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createFeature as SinonStub + client.innerApiCalls.updateFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createFeature with call error', async () => { + it('invokes updateFeatureGroup with call error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1329,31 +1337,32 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest() ); + request.featureGroup ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest', + ['featureGroup', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.featureGroup.name = defaultValue1; + const expectedHeaderRequestParams = `feature_group.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createFeature = stubLongRunningCall( + client.innerApiCalls.updateFeatureGroup = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.createFeature(request), expectedError); + await assert.rejects(client.updateFeatureGroup(request), expectedError); const actualRequest = ( - client.innerApiCalls.createFeature as SinonStub + client.innerApiCalls.updateFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createFeature as SinonStub + client.innerApiCalls.updateFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createFeature with LRO error', async () => { + it('invokes updateFeatureGroup with LRO error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1361,33 +1370,34 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest() ); + request.featureGroup ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest', + ['featureGroup', 'name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.featureGroup.name = defaultValue1; + const expectedHeaderRequestParams = `feature_group.name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createFeature = stubLongRunningCall( + client.innerApiCalls.updateFeatureGroup = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.createFeature(request); + const [operation] = await client.updateFeatureGroup(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.createFeature as SinonStub + client.innerApiCalls.updateFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createFeature as SinonStub + client.innerApiCalls.updateFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkCreateFeatureProgress without error', async () => { + it('invokes checkUpdateFeatureGroupProgress without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1402,7 +1412,7 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkCreateFeatureProgress( + const decodedOperation = await client.checkUpdateFeatureGroupProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -1410,7 +1420,7 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkCreateFeatureProgress with error', async () => { + it('invokes checkUpdateFeatureGroupProgress with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1424,15 +1434,15 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { expectedError ); await assert.rejects( - client.checkCreateFeatureProgress(''), + client.checkUpdateFeatureGroupProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updateFeature', () => { - it('invokes updateFeature without error', async () => { + describe('deleteFeatureGroup', () => { + it('invokes deleteFeatureGroup without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1440,34 +1450,33 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest() ); - request.feature ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', - ['feature', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest', + ['name'] ); - request.feature.name = defaultValue1; - const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateFeature = + client.innerApiCalls.deleteFeatureGroup = stubLongRunningCall(expectedResponse); - const [operation] = await client.updateFeature(request); + const [operation] = await client.deleteFeatureGroup(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateFeature as SinonStub + client.innerApiCalls.deleteFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateFeature as SinonStub + client.innerApiCalls.deleteFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateFeature without error using callback', async () => { + it('invokes deleteFeatureGroup without error using callback', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1475,28 +1484,27 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest() ); - request.feature ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', - ['feature', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest', + ['name'] ); - request.feature.name = defaultValue1; - const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateFeature = + client.innerApiCalls.deleteFeatureGroup = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateFeature( + client.deleteFeatureGroup( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.aiplatform.v1beta1.IFeature, - protos.google.cloud.aiplatform.v1beta1.IUpdateFeatureOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata > | null ) => { if (err) { @@ -1508,22 +1516,22 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.aiplatform.v1beta1.IFeature, - protos.google.cloud.aiplatform.v1beta1.IUpdateFeatureOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateFeature as SinonStub + client.innerApiCalls.deleteFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateFeature as SinonStub + client.innerApiCalls.deleteFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateFeature with call error', async () => { + it('invokes deleteFeatureGroup with call error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1531,32 +1539,31 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest() ); - request.feature ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', - ['feature', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest', + ['name'] ); - request.feature.name = defaultValue1; - const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateFeature = stubLongRunningCall( + client.innerApiCalls.deleteFeatureGroup = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.updateFeature(request), expectedError); + await assert.rejects(client.deleteFeatureGroup(request), expectedError); const actualRequest = ( - client.innerApiCalls.updateFeature as SinonStub + client.innerApiCalls.deleteFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateFeature as SinonStub + client.innerApiCalls.deleteFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateFeature with LRO error', async () => { + it('invokes deleteFeatureGroup with LRO error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1564,34 +1571,33 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest() ); - request.feature ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', - ['feature', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteFeatureGroupRequest', + ['name'] ); - request.feature.name = defaultValue1; - const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateFeature = stubLongRunningCall( + client.innerApiCalls.deleteFeatureGroup = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.updateFeature(request); + const [operation] = await client.deleteFeatureGroup(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.updateFeature as SinonStub + client.innerApiCalls.deleteFeatureGroup as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateFeature as SinonStub + client.innerApiCalls.deleteFeatureGroup as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdateFeatureProgress without error', async () => { + it('invokes checkDeleteFeatureGroupProgress without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1606,7 +1612,7 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkUpdateFeatureProgress( + const decodedOperation = await client.checkDeleteFeatureGroupProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -1614,7 +1620,7 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkUpdateFeatureProgress with error', async () => { + it('invokes checkDeleteFeatureGroupProgress with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1628,15 +1634,15 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { expectedError ); await assert.rejects( - client.checkUpdateFeatureProgress(''), + client.checkDeleteFeatureGroupProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteFeature', () => { - it('invokes deleteFeature without error', async () => { + describe('createFeature', () => { + it('invokes createFeature without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1644,33 +1650,33 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteFeature = + client.innerApiCalls.createFeature = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteFeature(request); + const [operation] = await client.createFeature(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteFeature as SinonStub + client.innerApiCalls.createFeature as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteFeature as SinonStub + client.innerApiCalls.createFeature as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteFeature without error using callback', async () => { + it('invokes createFeature without error using callback', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1678,27 +1684,27 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteFeature = + client.innerApiCalls.createFeature = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteFeature( + client.createFeature( request, ( err?: Error | null, result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + protos.google.cloud.aiplatform.v1beta1.IFeature, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata > | null ) => { if (err) { @@ -1710,22 +1716,1664 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + protos.google.cloud.aiplatform.v1beta1.IFeature, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteFeature as SinonStub + client.innerApiCalls.createFeature as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteFeature as SinonStub + client.innerApiCalls.createFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeature with call error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createFeature = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.createFeature(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeature with LRO error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createFeature = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createFeature(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeature as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteFeature with call error', async () => { + it('invokes checkCreateFeatureProgress without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkCreateFeatureProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateFeatureProgress with error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkCreateFeatureProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('batchCreateFeatures', () => { + it('invokes batchCreateFeatures without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.batchCreateFeatures = + stubLongRunningCall(expectedResponse); + const [operation] = await client.batchCreateFeatures(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchCreateFeatures without error using callback', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.batchCreateFeatures = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.batchCreateFeatures( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, + protos.google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchCreateFeatures with call error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.batchCreateFeatures = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.batchCreateFeatures(request), expectedError); + const actualRequest = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes batchCreateFeatures with LRO error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.batchCreateFeatures = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.batchCreateFeatures(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.batchCreateFeatures as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkBatchCreateFeaturesProgress without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkBatchCreateFeaturesProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkBatchCreateFeaturesProgress with error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkBatchCreateFeaturesProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateFeature', () => { + it('invokes updateFeature without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() + ); + request.feature ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', + ['feature', 'name'] + ); + request.feature.name = defaultValue1; + const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateFeature = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateFeature(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateFeature without error using callback', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() + ); + request.feature ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', + ['feature', 'name'] + ); + request.feature.name = defaultValue1; + const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateFeature = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateFeature( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1beta1.IFeature, + protos.google.cloud.aiplatform.v1beta1.IUpdateFeatureOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1beta1.IFeature, + protos.google.cloud.aiplatform.v1beta1.IUpdateFeatureOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateFeature with call error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() + ); + request.feature ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', + ['feature', 'name'] + ); + request.feature.name = defaultValue1; + const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateFeature = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.updateFeature(request), expectedError); + const actualRequest = ( + client.innerApiCalls.updateFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateFeature with LRO error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest() + ); + request.feature ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest', + ['feature', 'name'] + ); + request.feature.name = defaultValue1; + const expectedHeaderRequestParams = `feature.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateFeature = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.updateFeature(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateFeatureProgress without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkUpdateFeatureProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateFeatureProgress with error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkUpdateFeatureProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteFeature', () => { + it('invokes deleteFeature without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeature = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteFeature(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeature without error using callback', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeature = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteFeature( + 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.deleteFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeature with call error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeature = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteFeature(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeature with LRO error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeature = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteFeature(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteFeature as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeature as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteFeatureProgress without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkDeleteFeatureProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteFeatureProgress with error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkDeleteFeatureProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('createFeatureMonitor', () => { + it('invokes createFeatureMonitor without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createFeatureMonitor = + stubLongRunningCall(expectedResponse); + const [operation] = await client.createFeatureMonitor(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createFeatureMonitor as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureMonitor as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureMonitor without error using callback', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.createFeatureMonitor = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createFeatureMonitor( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor, + protos.google.cloud.aiplatform.v1beta1.ICreateFeatureMonitorOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createFeatureMonitor as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureMonitor as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureMonitor with call error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createFeatureMonitor = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.createFeatureMonitor(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createFeatureMonitor as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureMonitor as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createFeatureMonitor with LRO error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CreateFeatureMonitorRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createFeatureMonitor = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.createFeatureMonitor(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.createFeatureMonitor as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createFeatureMonitor as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCreateFeatureMonitorProgress without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkCreateFeatureMonitorProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCreateFeatureMonitorProgress with error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkCreateFeatureMonitorProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteFeatureMonitor', () => { + it('invokes deleteFeatureMonitor without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeatureMonitor = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteFeatureMonitor(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteFeatureMonitor as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureMonitor as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureMonitor without error using callback', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteFeatureMonitor = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteFeatureMonitor( + 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.deleteFeatureMonitor as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureMonitor as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureMonitor with call error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeatureMonitor = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteFeatureMonitor(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteFeatureMonitor as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureMonitor as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteFeatureMonitor with LRO error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteFeatureMonitor = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteFeatureMonitor(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteFeatureMonitor as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteFeatureMonitor as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteFeatureMonitorProgress without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkDeleteFeatureMonitorProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteFeatureMonitorProgress with error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + 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.checkDeleteFeatureMonitorProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listFeatureGroups', () => { + it('invokes listFeatureGroups without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + ]; + client.innerApiCalls.listFeatureGroups = stubSimpleCall(expectedResponse); + const [response] = await client.listFeatureGroups(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listFeatureGroups as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureGroups as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureGroups without error using callback', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + ]; + client.innerApiCalls.listFeatureGroups = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listFeatureGroups( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.aiplatform.v1beta1.IFeatureGroup[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listFeatureGroups as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureGroups as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureGroups with error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listFeatureGroups = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listFeatureGroups(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listFeatureGroups as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatureGroups as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatureGroupsStream without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + ]; + client.descriptors.page.listFeatureGroups.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listFeatureGroupsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.FeatureGroup[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.FeatureGroup) => { + 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.listFeatureGroups.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFeatureGroups, request) + ); + assert( + (client.descriptors.page.listFeatureGroups.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + + it('invokes listFeatureGroupsStream with error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listFeatureGroups.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listFeatureGroupsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.FeatureGroup[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.FeatureGroup) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listFeatureGroups.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFeatureGroups, request) + ); + assert( + (client.descriptors.page.listFeatureGroups.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + + it('uses async iteration with listFeatureGroups without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + ), + ]; + client.descriptors.page.listFeatureGroups.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1beta1.IFeatureGroup[] = + []; + const iterable = client.listFeatureGroupsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listFeatureGroups.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listFeatureGroups.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + + it('uses async iteration with listFeatureGroups with error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listFeatureGroups.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listFeatureGroupsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1beta1.IFeatureGroup[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listFeatureGroups.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listFeatureGroups.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + }); + + describe('listFeatures', () => { + it('invokes listFeatures without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + ]; + client.innerApiCalls.listFeatures = stubSimpleCall(expectedResponse); + const [response] = await client.listFeatures(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listFeatures as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatures as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatures without error using callback', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + ]; + client.innerApiCalls.listFeatures = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listFeatures( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IFeature[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listFeatures as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatures as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeatures with error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listFeatures = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listFeatures(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listFeatures as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listFeatures as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listFeaturesStream without error', async () => { + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + ]; + client.descriptors.page.listFeatures.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listFeaturesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.Feature[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.Feature) => { + 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.listFeatures.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFeatures, request) + ); + assert( + (client.descriptors.page.listFeatures.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); + }); + + it('invokes listFeaturesStream with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1733,31 +3381,51 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteFeature = stubLongRunningCall( + client.descriptors.page.listFeatures.createStream = stubPageStreamingCall( undefined, expectedError ); - await assert.rejects(client.deleteFeature(request), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteFeature as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteFeature as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + const stream = client.listFeaturesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.Feature[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.Feature) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listFeatures.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listFeatures, request) + ); + assert( + (client.descriptors.page.listFeatures.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) + ); }); - it('invokes deleteFeature with LRO error', async () => { + it('uses async iteration with listFeatures without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1765,78 +3433,92 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteFeature = stubLongRunningCall( - undefined, - undefined, - expectedError + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Feature() + ), + ]; + client.descriptors.page.listFeatures.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1beta1.IFeature[] = []; + const iterable = client.listFeaturesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listFeatures.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listFeatures.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); - const [operation] = await client.deleteFeature(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteFeature as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteFeature as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteFeatureProgress without error', async () => { + it('uses async iteration with listFeatures with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ 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.ListFeaturesRequest() ); - 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.checkDeleteFeatureProgress( - expectedResponse.name + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + ['parent'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeleteFeatureProgress with error', async () => { - const client = - new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError + client.descriptors.page.listFeatures.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listFeaturesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1beta1.IFeature[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listFeatures.asyncIterate as SinonStub + ).getCall(0).args[1], + request ); - await assert.rejects( - client.checkDeleteFeatureProgress(''), - expectedError + assert( + (client.descriptors.page.listFeatures.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers[ + 'x-goog-request-params' + ].includes(expectedHeaderRequestParams) ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('listFeatureGroups', () => { - it('invokes listFeatureGroups without error', async () => { + describe('listFeatureMonitors', () => { + it('invokes listFeatureMonitors without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1844,39 +3526,40 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), ]; - client.innerApiCalls.listFeatureGroups = stubSimpleCall(expectedResponse); - const [response] = await client.listFeatureGroups(request); + client.innerApiCalls.listFeatureMonitors = + stubSimpleCall(expectedResponse); + const [response] = await client.listFeatureMonitors(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listFeatureGroups as SinonStub + client.innerApiCalls.listFeatureMonitors as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFeatureGroups as SinonStub + client.innerApiCalls.listFeatureMonitors as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFeatureGroups without error using callback', async () => { + it('invokes listFeatureMonitors without error using callback', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1884,34 +3567,34 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), ]; - client.innerApiCalls.listFeatureGroups = + client.innerApiCalls.listFeatureMonitors = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listFeatureGroups( + client.listFeatureMonitors( request, ( err?: Error | null, result?: - | protos.google.cloud.aiplatform.v1beta1.IFeatureGroup[] + | protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor[] | null ) => { if (err) { @@ -1925,16 +3608,16 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listFeatureGroups as SinonStub + client.innerApiCalls.listFeatureMonitors as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFeatureGroups as SinonStub + client.innerApiCalls.listFeatureMonitors as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFeatureGroups with error', async () => { + it('invokes listFeatureMonitors with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1942,31 +3625,31 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listFeatureGroups = stubSimpleCall( + client.innerApiCalls.listFeatureMonitors = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listFeatureGroups(request), expectedError); + await assert.rejects(client.listFeatureMonitors(request), expectedError); const actualRequest = ( - client.innerApiCalls.listFeatureGroups as SinonStub + client.innerApiCalls.listFeatureMonitors as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFeatureGroups as SinonStub + client.innerApiCalls.listFeatureMonitors as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFeatureGroupsStream without error', async () => { + it('invokes listFeatureMonitorsStream without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1974,34 +3657,34 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), ]; - client.descriptors.page.listFeatureGroups.createStream = + client.descriptors.page.listFeatureMonitors.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listFeatureGroupsStream(request); + const stream = client.listFeatureMonitorsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.FeatureGroup[] = + const responses: protos.google.cloud.aiplatform.v1beta1.FeatureMonitor[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1beta1.FeatureGroup) => { + (response: protos.google.cloud.aiplatform.v1beta1.FeatureMonitor) => { responses.push(response); } ); @@ -2015,12 +3698,12 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listFeatureGroups.createStream as SinonStub) + (client.descriptors.page.listFeatureMonitors.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listFeatureGroups, request) + .calledWith(client.innerApiCalls.listFeatureMonitors, request) ); assert( - (client.descriptors.page.listFeatureGroups.createStream as SinonStub) + (client.descriptors.page.listFeatureMonitors.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -2028,7 +3711,7 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { ); }); - it('invokes listFeatureGroupsStream with error', async () => { + it('invokes listFeatureMonitorsStream with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2036,24 +3719,24 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listFeatureGroups.createStream = + client.descriptors.page.listFeatureMonitors.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listFeatureGroupsStream(request); + const stream = client.listFeatureMonitorsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.FeatureGroup[] = + const responses: protos.google.cloud.aiplatform.v1beta1.FeatureMonitor[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1beta1.FeatureGroup) => { + (response: protos.google.cloud.aiplatform.v1beta1.FeatureMonitor) => { responses.push(response); } ); @@ -2066,12 +3749,12 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listFeatureGroups.createStream as SinonStub) + (client.descriptors.page.listFeatureMonitors.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listFeatureGroups, request) + .calledWith(client.innerApiCalls.listFeatureMonitors, request) ); assert( - (client.descriptors.page.listFeatureGroups.createStream as SinonStub) + (client.descriptors.page.listFeatureMonitors.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -2079,7 +3762,7 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { ); }); - it('uses async iteration with listFeatureGroups without error', async () => { + it('uses async iteration with listFeatureMonitors without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2087,42 +3770,42 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.FeatureGroup() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitor() ), ]; - client.descriptors.page.listFeatureGroups.asyncIterate = + client.descriptors.page.listFeatureMonitors.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1beta1.IFeatureGroup[] = + const responses: protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor[] = []; - const iterable = client.listFeatureGroupsAsync(request); + const iterable = client.listFeatureMonitorsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listFeatureGroups.asyncIterate as SinonStub + client.descriptors.page.listFeatureMonitors.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listFeatureGroups.asyncIterate as SinonStub) + (client.descriptors.page.listFeatureMonitors.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -2130,7 +3813,7 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { ); }); - it('uses async iteration with listFeatureGroups with error', async () => { + it('uses async iteration with listFeatureMonitors with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2138,20 +3821,20 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeatureGroupsRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listFeatureGroups.asyncIterate = + client.descriptors.page.listFeatureMonitors.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listFeatureGroupsAsync(request); + const iterable = client.listFeatureMonitorsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1beta1.IFeatureGroup[] = + const responses: protos.google.cloud.aiplatform.v1beta1.IFeatureMonitor[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -2159,12 +3842,12 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listFeatureGroups.asyncIterate as SinonStub + client.descriptors.page.listFeatureMonitors.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listFeatureGroups.asyncIterate as SinonStub) + (client.descriptors.page.listFeatureMonitors.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers[ 'x-goog-request-params' @@ -2173,8 +3856,8 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); }); - describe('listFeatures', () => { - it('invokes listFeatures without error', async () => { + describe('listFeatureMonitorJobs', () => { + it('invokes listFeatureMonitorJobs without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2182,39 +3865,40 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), ]; - client.innerApiCalls.listFeatures = stubSimpleCall(expectedResponse); - const [response] = await client.listFeatures(request); + client.innerApiCalls.listFeatureMonitorJobs = + stubSimpleCall(expectedResponse); + const [response] = await client.listFeatureMonitorJobs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listFeatures as SinonStub + client.innerApiCalls.listFeatureMonitorJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFeatures as SinonStub + client.innerApiCalls.listFeatureMonitorJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFeatures without error using callback', async () => { + it('invokes listFeatureMonitorJobs without error using callback', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2222,33 +3906,35 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), ]; - client.innerApiCalls.listFeatures = + client.innerApiCalls.listFeatureMonitorJobs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listFeatures( + client.listFeatureMonitorJobs( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IFeature[] | null + result?: + | protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob[] + | null ) => { if (err) { reject(err); @@ -2261,16 +3947,16 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listFeatures as SinonStub + client.innerApiCalls.listFeatureMonitorJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFeatures as SinonStub + client.innerApiCalls.listFeatureMonitorJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFeatures with error', async () => { + it('invokes listFeatureMonitorJobs with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2278,31 +3964,34 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listFeatures = stubSimpleCall( + client.innerApiCalls.listFeatureMonitorJobs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listFeatures(request), expectedError); + await assert.rejects( + client.listFeatureMonitorJobs(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listFeatures as SinonStub + client.innerApiCalls.listFeatureMonitorJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFeatures as SinonStub + client.innerApiCalls.listFeatureMonitorJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFeaturesStream without error', async () => { + it('invokes listFeatureMonitorJobsStream without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2310,33 +3999,36 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), ]; - client.descriptors.page.listFeatures.createStream = + client.descriptors.page.listFeatureMonitorJobs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listFeaturesStream(request); + const stream = client.listFeatureMonitorJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.Feature[] = []; + const responses: protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob[] = + []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1beta1.Feature) => { + ( + response: protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob + ) => { responses.push(response); } ); @@ -2350,20 +4042,26 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listFeatures.createStream as SinonStub) + ( + client.descriptors.page.listFeatureMonitorJobs + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listFeatures, request) + .calledWith(client.innerApiCalls.listFeatureMonitorJobs, request) ); assert( - (client.descriptors.page.listFeatures.createStream as SinonStub) + ( + client.descriptors.page.listFeatureMonitorJobs + .createStream as SinonStub + ) .getCall(0) - .args[2].otherArgs.headers[ - 'x-goog-request-params' - ].includes(expectedHeaderRequestParams) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); - it('invokes listFeaturesStream with error', async () => { + it('invokes listFeatureMonitorJobsStream with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2371,25 +4069,26 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listFeatures.createStream = stubPageStreamingCall( - undefined, - expectedError - ); - const stream = client.listFeaturesStream(request); + client.descriptors.page.listFeatureMonitorJobs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listFeatureMonitorJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.Feature[] = []; + const responses: protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob[] = + []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1beta1.Feature) => { + ( + response: protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob + ) => { responses.push(response); } ); @@ -2402,20 +4101,26 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listFeatures.createStream as SinonStub) + ( + client.descriptors.page.listFeatureMonitorJobs + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listFeatures, request) + .calledWith(client.innerApiCalls.listFeatureMonitorJobs, request) ); assert( - (client.descriptors.page.listFeatures.createStream as SinonStub) + ( + client.descriptors.page.listFeatureMonitorJobs + .createStream as SinonStub + ) .getCall(0) - .args[2].otherArgs.headers[ - 'x-goog-request-params' - ].includes(expectedHeaderRequestParams) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); - it('uses async iteration with listFeatures without error', async () => { + it('uses async iteration with listFeatureMonitorJobs without error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2423,49 +4128,54 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Feature() + new protos.google.cloud.aiplatform.v1beta1.FeatureMonitorJob() ), ]; - client.descriptors.page.listFeatures.asyncIterate = + client.descriptors.page.listFeatureMonitorJobs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1beta1.IFeature[] = []; - const iterable = client.listFeaturesAsync(request); + const responses: protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob[] = + []; + const iterable = client.listFeatureMonitorJobsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listFeatures.asyncIterate as SinonStub + client.descriptors.page.listFeatureMonitorJobs + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listFeatures.asyncIterate as SinonStub) + ( + client.descriptors.page.listFeatureMonitorJobs + .asyncIterate as SinonStub + ) .getCall(0) - .args[2].otherArgs.headers[ - 'x-goog-request-params' - ].includes(expectedHeaderRequestParams) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); - it('uses async iteration with listFeatures with error', async () => { + it('uses async iteration with listFeatureMonitorJobs with error', async () => { const client = new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -2473,36 +4183,41 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListFeaturesRequest() + new protos.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListFeaturesRequest', + '.google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listFeatures.asyncIterate = + client.descriptors.page.listFeatureMonitorJobs.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listFeaturesAsync(request); + const iterable = client.listFeatureMonitorJobsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1beta1.IFeature[] = []; + const responses: protos.google.cloud.aiplatform.v1beta1.IFeatureMonitorJob[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listFeatures.asyncIterate as SinonStub + client.descriptors.page.listFeatureMonitorJobs + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listFeatures.asyncIterate as SinonStub) + ( + client.descriptors.page.listFeatureMonitorJobs + .asyncIterate as SinonStub + ) .getCall(0) - .args[2].otherArgs.headers[ - 'x-goog-request-params' - ].includes(expectedHeaderRequestParams) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); @@ -4541,6 +6256,194 @@ describe('v1beta1.FeatureRegistryServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new featureregistryserviceModule.v1beta1.FeatureRegistryServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 c5a133fc274..8f6a95a6c37 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 @@ -2577,6 +2577,198 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 9f866d53b52..919717f1f90 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts @@ -6818,6 +6818,194 @@ describe('v1beta1.FeaturestoreServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_gen_ai_cache_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_gen_ai_cache_service_v1beta1.ts index 3724b6fda47..5a7479c4da7 100644 --- a/packages/google-cloud-aiplatform/test/gapic_gen_ai_cache_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_gen_ai_cache_service_v1beta1.ts @@ -2918,6 +2918,194 @@ describe('v1beta1.GenAiCacheServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new genaicacheserviceModule.v1beta1.GenAiCacheServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new genaicacheserviceModule.v1beta1.GenAiCacheServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_gen_ai_tuning_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_gen_ai_tuning_service_v1beta1.ts index 5169eb42c9b..31620487686 100644 --- a/packages/google-cloud-aiplatform/test/gapic_gen_ai_tuning_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_gen_ai_tuning_service_v1beta1.ts @@ -3328,6 +3328,194 @@ describe('v1beta1.GenAiTuningServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new genaituningserviceModule.v1beta1.GenAiTuningServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new genaituningserviceModule.v1beta1.GenAiTuningServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 a970e773120..45d3562c21c 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 @@ -4001,6 +4001,194 @@ describe('v1beta1.IndexEndpointServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 5b12adae819..eac7e668af0 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts @@ -3626,6 +3626,192 @@ describe('v1beta1.IndexServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 d03341765c2..65e540497ef 100644 --- a/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts @@ -9181,6 +9181,192 @@ describe('v1beta1.JobServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1beta1.ts index 628c3ef1396..28377d83057 100644 --- a/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_llm_utility_service_v1beta1.ts @@ -2130,6 +2130,194 @@ describe('v1beta1.LlmUtilityServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new llmutilityserviceModule.v1beta1.LlmUtilityServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_match_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_match_service_v1beta1.ts index 704211bbc6a..cdd005b45b5 100644 --- a/packages/google-cloud-aiplatform/test/gapic_match_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_match_service_v1beta1.ts @@ -2214,6 +2214,192 @@ describe('v1beta1.MatchServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new matchserviceModule.v1beta1.MatchServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new matchserviceModule.v1beta1.MatchServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 b2fbcfa659b..ed034618b3e 100644 --- a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts @@ -8055,6 +8055,192 @@ describe('v1beta1.MetadataServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 fbb6bba5189..f65c18de543 100644 --- a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts @@ -2897,6 +2897,192 @@ describe('v1beta1.MigrationServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_model_garden_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_model_garden_service_v1beta1.ts index 528394aef51..6221f9c23b8 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_garden_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_garden_service_v1beta1.ts @@ -2510,6 +2510,194 @@ describe('v1beta1.ModelGardenServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new modelgardenserviceModule.v1beta1.ModelGardenServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new modelgardenserviceModule.v1beta1.ModelGardenServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_model_monitoring_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_model_monitoring_service_v1beta1.ts index e1854ca848a..51b8db5a4c5 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_monitoring_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_monitoring_service_v1beta1.ts @@ -5053,6 +5053,194 @@ describe('v1beta1.ModelMonitoringServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new modelmonitoringserviceModule.v1beta1.ModelMonitoringServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new modelmonitoringserviceModule.v1beta1.ModelMonitoringServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 b5dab8c1ea5..c7db55fb1bc 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts @@ -5908,6 +5908,192 @@ describe('v1beta1.ModelServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_notebook_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_notebook_service_v1beta1.ts index 4ab4a3a64d5..be634f34ee0 100644 --- a/packages/google-cloud-aiplatform/test/gapic_notebook_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_notebook_service_v1beta1.ts @@ -2072,6 +2072,200 @@ describe('v1beta1.NotebookServiceClient', () => { }); }); + describe('stopNotebookRuntime', () => { + it('invokes stopNotebookRuntime without error', async () => { + const client = new notebookserviceModule.v1beta1.NotebookServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.stopNotebookRuntime = + stubLongRunningCall(expectedResponse); + const [operation] = await client.stopNotebookRuntime(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.stopNotebookRuntime as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.stopNotebookRuntime as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes stopNotebookRuntime without error using callback', async () => { + const client = new notebookserviceModule.v1beta1.NotebookServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.stopNotebookRuntime = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.stopNotebookRuntime( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse, + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeResponse, + protos.google.cloud.aiplatform.v1beta1.IStopNotebookRuntimeOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.stopNotebookRuntime as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.stopNotebookRuntime as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes stopNotebookRuntime with call error', async () => { + const client = new notebookserviceModule.v1beta1.NotebookServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.stopNotebookRuntime = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.stopNotebookRuntime(request), expectedError); + const actualRequest = ( + client.innerApiCalls.stopNotebookRuntime as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.stopNotebookRuntime as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes stopNotebookRuntime with LRO error', async () => { + const client = new notebookserviceModule.v1beta1.NotebookServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StopNotebookRuntimeRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.stopNotebookRuntime = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.stopNotebookRuntime(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.stopNotebookRuntime as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.stopNotebookRuntime as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkStopNotebookRuntimeProgress without error', async () => { + const client = new notebookserviceModule.v1beta1.NotebookServiceClient({ + 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.checkStopNotebookRuntimeProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkStopNotebookRuntimeProgress with error', async () => { + const client = new notebookserviceModule.v1beta1.NotebookServiceClient({ + 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.checkStopNotebookRuntimeProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('createNotebookExecutionJob', () => { it('invokes createNotebookExecutionJob without error', async () => { const client = new notebookserviceModule.v1beta1.NotebookServiceClient({ @@ -5521,6 +5715,192 @@ describe('v1beta1.NotebookServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new notebookserviceModule.v1beta1.NotebookServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new notebookserviceModule.v1beta1.NotebookServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_persistent_resource_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_persistent_resource_service_v1beta1.ts index c2c707e37d8..573c2e85f51 100644 --- a/packages/google-cloud-aiplatform/test/gapic_persistent_resource_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_persistent_resource_service_v1beta1.ts @@ -3884,6 +3884,198 @@ describe('v1beta1.PersistentResourceServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new persistentresourceserviceModule.v1beta1.PersistentResourceServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new persistentresourceserviceModule.v1beta1.PersistentResourceServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 ee90ec8efd1..77815ded140 100644 --- a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts @@ -4610,6 +4610,192 @@ describe('v1beta1.PipelineServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 3878bd8a01b..48760fff9e9 100644 --- a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts @@ -4026,6 +4026,194 @@ describe('v1beta1.PredictionServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_reasoning_engine_execution_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_reasoning_engine_execution_service_v1beta1.ts index 78c3f33c405..0163e1f3796 100644 --- a/packages/google-cloud-aiplatform/test/gapic_reasoning_engine_execution_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_reasoning_engine_execution_service_v1beta1.ts @@ -2214,6 +2214,198 @@ describe('v1beta1.ReasoningEngineExecutionServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new reasoningengineexecutionserviceModule.v1beta1.ReasoningEngineExecutionServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new reasoningengineexecutionserviceModule.v1beta1.ReasoningEngineExecutionServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_reasoning_engine_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_reasoning_engine_service_v1beta1.ts index b1eeb66f6b5..e132b0e9707 100644 --- a/packages/google-cloud-aiplatform/test/gapic_reasoning_engine_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_reasoning_engine_service_v1beta1.ts @@ -3484,6 +3484,194 @@ describe('v1beta1.ReasoningEngineServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new reasoningengineserviceModule.v1beta1.ReasoningEngineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new reasoningengineserviceModule.v1beta1.ReasoningEngineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_schedule_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_schedule_service_v1beta1.ts index fd62e18affc..db538d7479d 100644 --- a/packages/google-cloud-aiplatform/test/gapic_schedule_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_schedule_service_v1beta1.ts @@ -3512,6 +3512,192 @@ describe('v1beta1.ScheduleServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new scheduleserviceModule.v1beta1.ScheduleServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new scheduleserviceModule.v1beta1.ScheduleServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 a934d6d6ee6..23ae7daa574 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 @@ -3470,6 +3470,194 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 df7d8f2b62d..fd0d88de4f6 100644 --- a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts @@ -8102,6 +8102,194 @@ describe('v1beta1.TensorboardServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_vertex_rag_data_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_vertex_rag_data_service_v1beta1.ts index 91814ca2019..dc1f2c152f9 100644 --- a/packages/google-cloud-aiplatform/test/gapic_vertex_rag_data_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_vertex_rag_data_service_v1beta1.ts @@ -4468,6 +4468,194 @@ describe('v1beta1.VertexRagDataServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = + new vertexragdataserviceModule.v1beta1.VertexRagDataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = + new vertexragdataserviceModule.v1beta1.VertexRagDataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_vertex_rag_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_vertex_rag_service_v1beta1.ts index fe45f12fea1..60912f9f33c 100644 --- a/packages/google-cloud-aiplatform/test/gapic_vertex_rag_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_vertex_rag_service_v1beta1.ts @@ -2088,6 +2088,192 @@ describe('v1beta1.VertexRagServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new vertexragserviceModule.v1beta1.VertexRagServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new vertexragserviceModule.v1beta1.VertexRagServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; 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 d23c1e23714..9a87ed70fe6 100644 --- a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts @@ -4808,6 +4808,192 @@ describe('v1beta1.VizierServiceClient', () => { }); }); + describe('featureMonitor', () => { + const fakePath = '/rendered/path/featureMonitor'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + }; + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorPath', () => { + const result = client.featureMonitorPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureMonitorPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorName', () => { + const result = client.matchProjectFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorName', () => { + const result = client.matchLocationFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorName', () => { + const result = client.matchFeatureGroupFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + (client.pathTemplates.featureMonitorPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureMonitorJob', () => { + const fakePath = '/rendered/path/featureMonitorJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature_monitor: 'featureMonitorValue', + feature_monitor_job: 'featureMonitorJobValue', + }; + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureMonitorJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureMonitorJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureMonitorJobPath', () => { + const result = client.featureMonitorJobPath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureMonitorValue', + 'featureMonitorJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureMonitorJobName', () => { + const result = client.matchProjectFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureMonitorJobName', () => { + const result = client.matchLocationFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureGroupFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureMonitorJobFromFeatureMonitorJobName', () => { + const result = + client.matchFeatureMonitorJobFromFeatureMonitorJobName(fakePath); + assert.strictEqual(result, 'featureMonitorJobValue'); + assert( + ( + client.pathTemplates.featureMonitorJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('featureOnlineStore', () => { const fakePath = '/rendered/path/featureOnlineStore'; const expectedParameters = {